Fix bug #9542. Check that projectiles are within the map before updating them.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2148 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
a23b19137f
commit
77bc1dfd1d
|
@ -1755,7 +1755,13 @@ proj_Update( PROJECTILE *psObj )
|
|||
setProjectileDamaged(psObj, NULL);
|
||||
}
|
||||
|
||||
//Watermelon:get naybors
|
||||
// This extra check fixes a crash in cam2, mission1
|
||||
if (worldOnMap(psObj->x, psObj->y) == FALSE)
|
||||
{
|
||||
psObj->died = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
projGetNaybors((PROJECTILE *)psObj);
|
||||
|
||||
switch (psObj->state)
|
||||
|
|
Loading…
Reference in New Issue