couple of fixes and cleanup

This commit is contained in:
aap 2020-10-31 14:33:49 +01:00
parent 0e1257cf17
commit ea5b86774d
9 changed files with 158 additions and 144 deletions

View file

@ -2963,7 +2963,7 @@ CWaterLevel::HandleBeachToysStuff(void)
CEntity *
CWaterLevel::CreateBeachToy(CVector const &vec, eBeachToy beachtoy)
{
if (CObject::nNoTempObjects >= 40)
if (CObject::nNoTempObjects >= NUMTEMPOBJECTS)
return nil;
int finalToy = beachtoy;