From 7c3ee246fb626ab09b3b05055efdfaf3a00e60e7 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Jun 2014 17:04:30 -0400 Subject: Fixed more bugs, added more features :) --- games.c | 59 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 23 deletions(-) (limited to 'games.c') diff --git a/games.c b/games.c index 21c982f..a4234ce 100644 --- a/games.c +++ b/games.c @@ -31,6 +31,8 @@ void global_thermonuclear_war(void) char target_names[32][129]; good=true; int num_targets=0; + struct location_t targets[32]; + int num_targets_found=0; for(int i=0;i<32 && good;++i) { getnstr(target_names[i], 128); @@ -41,31 +43,42 @@ void global_thermonuclear_war(void) else { ++num_targets; + allLower(target_names[i]); + remove_punct(target_names[i]); + bool found=false; + for(int j=0;j