aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/taipan.c b/taipan.c
index 03af06b..c07bca0 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1677,24 +1677,27 @@ unsigned int warehouse_in_use() {
void port_stats(void) {
int i, in_use, status = get_ship_status();
- if(port_stat_dirty) bank_dirty = 1;
-
- /* all the static text that used to be in port_stats() has
- been moved to mkportstats.c, which creates a .xex file which
- will get prepended to taipan.xex and loaded into a chunk of memory
- cc65 won't use. When it's time to print it, it'll get copied
- into *SAVMSC. */
- redraw_port_stat();
+ if(port_stat_dirty) {
+ bank_dirty = 1;
+
+ /* all the static text that used to be in port_stats() has
+ been moved to mkportstats.c, which creates a .xex file which
+ will get prepended to taipan.xex and loaded into a chunk of memory
+ cc65 won't use. When it's time to print it, it'll get copied
+ into *SAVMSC. */
+ redraw_port_stat();
+
+ gotoxy(0, 0);
+ cspaces(firmpos);
+ // cputs("Firm: ");
+ cprint_firm_colon();
+ cputs(firm);
+ comma_space();
+ // cputs(location[1]);
+ print_msg(M_hong_kong);
+ }
/* dynamic stuff: */
- gotoxy(firmpos, 0);
- // cputs("Firm: ");
- cprint_firm_colon();
- cputs(firm);
- comma_space();
- // cputs(location[1]);
- print_msg(M_hong_kong);
-
gotoxy(21, 4);
in_use = warehouse_in_use();
cprintuint(in_use);