This commit is contained in:
parent
e441d50ab8
commit
93e11bd5c5
@ -460,8 +460,8 @@ DVECTOR const &MapSize=Lvl.getMapSize16();
|
|||||||
int Flag=1;
|
int Flag=1;
|
||||||
DVECTOR const &ThingPos=thing->getPos();
|
DVECTOR const &ThingPos=thing->getPos();
|
||||||
|
|
||||||
// Will speed this up
|
// Will speed this up - doubt it, not now!!
|
||||||
if (ThingPos.vx<0 || ThingPos.vx>=MapSize.vx || ThingPos.vy<0 || ThingPos.vy>=MapSize.vy)
|
if (i!=CThing::TYPE_PLAYER && (ThingPos.vx<0 || ThingPos.vx>=MapSize.vx || ThingPos.vy<0 || ThingPos.vy>=MapSize.vy))
|
||||||
{
|
{
|
||||||
thing->setToShutdown();
|
thing->setToShutdown();
|
||||||
SYSTEM_DBGMSG("ThingOffMap: T:%i S:%i TXY%i %i, MWH%i %i\n",(int)thing->getThingType(),(int)thing->getThingSubType(),ThingPos.vx,ThingPos.vy,MapSize.vx,MapSize.vy);
|
SYSTEM_DBGMSG("ThingOffMap: T:%i S:%i TXY%i %i, MWH%i %i\n",(int)thing->getThingType(),(int)thing->getThingSubType(),ThingPos.vx,ThingPos.vy,MapSize.vx,MapSize.vy);
|
||||||
|
Loading…
Reference in New Issue
Block a user