fix phones

This commit is contained in:
aap 2021-01-08 13:51:31 +01:00
parent 0e2af13656
commit a99457ee29
4 changed files with 4 additions and 3 deletions

View file

@ -286,6 +286,7 @@ CPhoneInfo::Initialise(void)
CBuilding *building = pool->GetSlot(i); CBuilding *building = pool->GetSlot(i);
if (building) { if (building) {
if (building->GetModelIndex() == MI_PHONEBOOTH1) { if (building->GetModelIndex() == MI_PHONEBOOTH1) {
assert(m_nMax < ARRAY_SIZE(m_aPhones) && "NUMPHONES should be increased");
CPhone *maxPhone = &m_aPhones[m_nMax]; CPhone *maxPhone = &m_aPhones[m_nMax];
maxPhone->m_nState = PHONE_STATE_FREE; maxPhone->m_nState = PHONE_STATE_FREE;
maxPhone->m_vecPos = building->GetPosition(); maxPhone->m_vecPos = building->GetPosition();

View file

@ -111,7 +111,7 @@ enum Config {
NUM_WATERCANNONS = 3, NUM_WATERCANNONS = 3,
NUMPEDROUTES = 200, NUMPEDROUTES = 200,
NUMPHONES = 50, NUMPHONES = 60,
NUMPEDGROUPS = 67, NUMPEDGROUPS = 67,
NUMMODELSPERPEDGROUP = 16, NUMMODELSPERPEDGROUP = 16,
MAXZONEPEDSLOADED = 8, MAXZONEPEDSLOADED = 8,

View file

@ -76,7 +76,7 @@
GlobalScene Scene; GlobalScene Scene;
uint8 work_buff[55000 * 2]; uint8 work_buff[55000];
char gString[256]; char gString[256];
char gString2[512]; char gString2[512];
wchar gUString[256]; wchar gUString[256];

View file

@ -7,7 +7,7 @@ struct GlobalScene
}; };
extern GlobalScene Scene; extern GlobalScene Scene;
extern uint8 work_buff[55000 * 2]; extern uint8 work_buff[55000];
extern char gString[256]; extern char gString[256];
extern char gString2[512]; extern char gString2[512];
extern wchar gUString[256]; extern wchar gUString[256];