This is a patch file for "battalion" release 2004c. It's not compati- ble with older releases. These changes rearrange the monsters shown on the program's initial monster selection screen. The following conventions are used: Monster Key ---------- --- Googleon 5 Flutter 6 Techs 7 The Vapour 8 Pingutron 9 Billy 0 Requirement: This file assumes that the "battalion" sources were un- packed as follows: unzip -aq battalion2004c.zip If "unzip -aq" isn't used, "patch" operations that apply this file may fail. Explanation: Some of the "battalion" source files are stored in MS-DOS format. This file assumes that the files have been converted to UNIX format. "unzip -aq" converts text files to the correct format auto- matically (normally, binary files aren't affected). --- battalion2004.old/language.h +++ battalion2004/language.h @@ -58,12 +58,12 @@ static char str_space[] = "Pulsa espacio para empezar"; -static char str_penguin[] = "Pingutron-5"; -static char str_googelon[] = "Googelon-6"; -static char str_techs[] = "Techs-7"; -static char str_vapour[] = "El Vapor-8"; -static char str_flutter[] = "Flutter-9"; -static char str_billy[] = "Billy-0"; +static char str_googelon[] = "Googelon-5"; +static char str_flutter[] = "Flutter-6"; +static char str_techs[] = "Techs-7"; +static char str_vapour[] = "El Vapor-8"; +static char str_penguin[] = "Pingutron-9"; +static char str_billy[] = "Billy-0"; static char str_andy[] = "andy johnson's"; static char str_version[] = "2004c"; @@ -140,12 +140,12 @@ static char str_space[] = "Press the spacebar to begin"; -static char str_penguin[] = "Pingutron-5"; -static char str_googelon[] = "Googelon-6"; -static char str_techs[] = "Techs-7"; -static char str_vapour[] = "The Vapour-8"; -static char str_flutter[] = "Flutter-9"; -static char str_billy[] = "Billy-0"; +static char str_googelon[] = "Googelon-5"; +static char str_flutter[] = "Flutter-6"; +static char str_techs[] = "Techs-7"; +static char str_vapour[] = "The Vapor-8"; +static char str_penguin[] = "Pingutron-9"; +static char str_billy[] = "Billy-0"; static char str_andy[] = "andy johnson's"; static char str_version[] = "2004c"; --- battalion2004.old/main.c +++ battalion2004/main.c @@ -5589,55 +5589,35 @@ } } - - /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ -void demoKeys(int key) - { - switch(key) - { - case ' ': - showOptions = 1; - break; - - case '5': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = PINGU; - setPlayConditions(); - break; - case '6': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = GOOGELON; - setPlayConditions(); - break; - - case '7': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = TECHS; - setPlayConditions(); - break; - - case '8': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = VAPOUR; - setPlayConditions(); - break; +void demoKeys (int key) +{ + int monster = (-1); - case '9': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = FLUTTER; - setPlayConditions(); - break; - - case '0': mode = PLAYMODE; - showOptions = 0; - Googelon.monster = BILLY; - setPlayConditions(); - break; - + switch (key) + { +case ' ': + showOptions = 1; + break; + +case '5': monster = GOOGELON ; break; +case '6': monster = FLUTTER ; break; +case '7': monster = TECHS ; break; +case '8': monster = VAPOUR ; break; +case '9': monster = PINGU ; break; +case '0': monster = BILLY ; break; } + + if (monster != -1) + { + Googelon.monster = monster; + mode = PLAYMODE; + showOptions = 0; + setPlayConditions(); + } } + /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ void doMonsterView() --- battalion2004.old/text.c +++ battalion2004/text.c @@ -1136,12 +1136,12 @@ glPushMatrix(); glTranslatef( -4.5, -.6, 0); - DrawStr(strokeBase, str_penguin); + DrawStr(strokeBase, str_googelon); glPopMatrix(); glPushMatrix(); glTranslatef(-1.2, -.6, 0); - DrawStr(strokeBase, str_googelon); + DrawStr(strokeBase, str_flutter); glPopMatrix(); glPushMatrix(); @@ -1149,8 +1149,6 @@ DrawStr(strokeBase, str_techs); glPopMatrix(); - - glPushMatrix(); glTranslatef(-4.5, -4, 0); DrawStr(strokeBase, str_vapour); @@ -1158,13 +1156,14 @@ glPushMatrix(); glTranslatef(-1.1, -4, 0); - DrawStr(strokeBase, str_flutter); + DrawStr(strokeBase, str_penguin); glPopMatrix(); glPushMatrix(); glTranslatef(2.5, -4, 0); DrawStr(strokeBase, str_billy); glPopMatrix(); + /*****************/ /* draw monsters */ /*****************/ @@ -1178,13 +1177,13 @@ glPushMatrix(); glTranslatef(-0.7, 0.25, 7.2); glScalef(.25, .25, .25); - drawPenguin(tempMonster, counter, itsChristmas, detail); + drawMonster(tempMonster, counter, itsChristmas, detail); glPopMatrix(); glPushMatrix(); glTranslatef(0.0, 0.25, 7.2); glScalef(.25, .25, .25); - drawMonster(tempMonster, counter, itsChristmas, detail); + drawFlutter(tempMonster, counter, itsChristmas, offsetX, OMNISCIENTVIEW, detail); glPopMatrix(); glPushMatrix(); @@ -1193,7 +1192,6 @@ drawTechs(tempMonster, detail); glPopMatrix(); - glPushMatrix(); glTranslatef(-.7, -0.4, 7.2); glScalef(.25, .25, .25); @@ -1203,7 +1201,7 @@ glPushMatrix(); glTranslatef(0.0, -0.4, 7.2); glScalef(.25, .25, .25); - drawFlutter(tempMonster, counter, itsChristmas, offsetX, OMNISCIENTVIEW, detail); + drawPenguin(tempMonster, counter, itsChristmas, detail); glPopMatrix(); glPushMatrix();