diff options
-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; |