From: Matthew Mondor Date: Thu, 13 Apr 2023 23:46:23 +0000 (+0000) Subject: Pad rating() strings with spaces. X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=53fc2df38c8f3bca121143a1bd84760ee5ba367a;p=ninvaders.git Pad rating() strings with spaces. --- diff --git a/nInvaders.c b/nInvaders.c index bc45701..a24e8bb 100644 --- a/nInvaders.c +++ b/nInvaders.c @@ -103,20 +103,20 @@ const char *rating(int score) { if(score<5000) - return "Alien Fodder"; + return "Alien Fodder "; else if(score<7500) - return "Easy Target"; + return "Easy Target "; else if(score<10000) - return "Barely Mediocre"; + return "Barely Mediocre "; else if(score<12500) - return "Shows Promise"; + return "Shows Promise "; else if(score<15000) - return "Alien Blaster"; + return "Alien Blaster "; else if(score<20000) - return "Earth Defender"; + return "Earth Defender "; else if(score>19999) return "Supreme Protector"; - else return "Unknown"; + else return "Unknown "; } static void finish(int sig)