Fixed potential crash when having the obstruction checker functions active
This commit is contained in:
1 parent
765097c403
commit
b812589299
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<entities anm2root="gfx/" version="5">
|
||||
<entity anm2path="eid_blank.anm2" baseHP="0" boss="0" champion="0" collisionDamage="0" collisionMass="0" collisionRadius="0" friction="1" id="17" name="EID_PATHCHECKER" numGridCollisionPoints="0" shadowSize="0" stageHP="0" gridCollision="none" variant="69420" shutdoors="false">
|
||||
<entity anm2path="eid_blank.anm2" baseHP="0" boss="0" champion="0" friction="1" id="17" name="EID_PATHCHECKER" shadowSize="0" stageHP="0" gridCollision="none" variant="3169" shutdoors="false">
|
||||
<gibs amount="0" blood="0" bone="0" eye="0" gut="0" large="0" />
|
||||
</entity>
|
||||
</entities>
|
||||
@@ -506,7 +506,7 @@ function EID:onGameUpdate()
|
||||
return
|
||||
end
|
||||
if EID.pathCheckerEntity == nil then
|
||||
EID.pathCheckerEntity = game:Spawn(17, 69420, EID.player.Position, nullVector, EID.player ,0 , 4354) -- Spawns the EID Helper entity with seed that doesnt spawn rewards
|
||||
EID.pathCheckerEntity = game:Spawn(17, 3169, EID.player.Position, nullVector, EID.player ,0 , 4354) -- Spawns the EID Helper entity with seed that doesnt spawn rewards
|
||||
EID.pathCheckerEntity:ClearEntityFlags(EntityFlag.FLAG_APPEAR)
|
||||
EID.pathCheckerEntity:AddEntityFlags (EntityFlag.FLAG_PERSISTENT | EntityFlag.FLAG_NO_STATUS_EFFECTS | EntityFlag.FLAG_NO_SPRITE_UPDATE | EntityFlag.FLAG_HIDE_HP_BAR | EntityFlag.FLAG_NO_DEATH_TRIGGER)
|
||||
EID.pathCheckerEntity.EntityCollisionClass = EntityCollisionClass.ENTCOLL_NONE
|
||||
|
||||
Reference in new issue
Block a user