This is a patch file for "atanks" 4.3. The following change is an attempt to give human players a better chance against "atank's" AI players. This change increases the amount of money that human players start with. --- atanks-4.3.old/src/atanks.cpp +++ atanks-4.3/src/atanks.cpp @@ -138,6 +138,8 @@ void initialisePlayers (GLOBALDATA *global) { + int ptype; + int is_human; int z; for (z = 0; z < global->numPlayers; z++) @@ -146,7 +148,12 @@ global->players[z]->score = 0; // global->players[z]->initialise (); // global->players[z]->type_saved = global->players[z]->type; - if (((int)global->players[z]->type != HUMAN_PLAYER) && + + ptype = (int) global->players [z]->type; + is_human = (ptype == HUMAN_PLAYER) ? 1 : 0; + if (is_human) global->players [z]->money = 32000; + + if (!is_human && (global->players[z]->preftype == PERPLAY_PREF)) { global->players[z]->generatePreferences();