diff options
author | B. Watson <yalhcru@gmail.com> | 2021-05-21 04:34:13 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-05-21 04:34:13 -0400 |
commit | 5b6f0359338c922f809c5133eb4c7efc61b3f21c (patch) | |
tree | 238a3b594e3901e1a9c074eed8620d49740a8122 | |
parent | a025fb40fdf3563de0d044fbf0e2598ec5f5b97b (diff) | |
download | taipan-5b6f0359338c922f809c5133eb4c7efc61b3f21c.tar.gz |
Save 5 bytes, now 9032
-rw-r--r-- | taipan.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1567,7 +1567,7 @@ char sea_battle(char id, int num_ships) { /* TODO: rewrite in asm. Maybe. */ unsigned long get_num(void) { unsigned char count = 0; - char input; + unsigned char input, i; SET_HELP(get_amount_help); while((input = numgetc()) != '\n') { @@ -1580,7 +1580,6 @@ unsigned long get_num(void) { return UINT32_MAX; } } else if(input == 'k' || input == 'm') { - char i; for(i = 0; i < (input == 'k' ? 3 : 6); i++) { cputc(num_buf[count++] = '0'); if(count >= 10) break; |