Increase recycled experience storage.

Also make constants for the unit limits. The experience storage is a separate
value, to be able to change unit limits without breaking savegames.
master
cybersphinx 2011-02-23 01:12:36 +01:00
parent daaf52c778
commit 54ca45e8f4
2 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,11 @@
#define DROID_RESISTANCE_FACTOR 30
#define MAX_RECYCLED_DROIDS 32
#define MAX_MP_DROIDS 450
#define MAX_SP_DROIDS 100
#define MAX_SP_AI_DROIDS 999
// Changing this breaks campaign saves!
#define MAX_RECYCLED_DROIDS 450
//storage
extern DROID_TEMPLATE *apsDroidTemplates[MAX_PLAYERS];

View File

@ -2562,8 +2562,7 @@ BOOL IsPlayerStructureLimitReached(UDWORD PlayerNumber)
UDWORD getMaxDroids(UDWORD PlayerNumber)
{
return bMultiPlayer? 450 : PlayerNumber == 0? 100 : 999;
return bMultiPlayer? MAX_MP_DROIDS : PlayerNumber == 0? MAX_SP_DROIDS : MAX_SP_AI_DROIDS;
}