aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-11 03:01:29 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-11 03:01:29 -0400
commita492b2b8812b7083010695327d90c5aa0a0499fb (patch)
tree6af7f6db1b51e8d62cfecc0d14b3579a0a4b206a
parent4aaf0add1cd84215a5e96ca80a6ee85ff4f4e2e7 (diff)
downloadtaipan-a492b2b8812b7083010695327d90c5aa0a0499fb.tar.gz
Save 10 bytes
-rw-r--r--taipan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/taipan.c b/taipan.c
index 1765399..b479df0 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1664,7 +1664,7 @@ void cash_or_guns(void) {
}
void set_prices(void) {
- char i;
+ unsigned char i;
for(i = 0; i < 4; ++i)
price[i] = (base_price[i][port] * rand1to3() * base_price[i][0]) / 2;
}
@@ -1678,8 +1678,8 @@ unsigned int warehouse_in_use() {
void port_stats(void) {
- unsigned char i;
- int in_use, status = get_ship_status();
+ unsigned char i, status = get_ship_status();
+ int in_use;
#ifdef PORT_STAT_TIMER
int startframe, startline, endframe, endline;
#endif