Default object light ID to -1
Some checks are pending
Build coop / build-macos-intel (push) Waiting to run
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run

This commit is contained in:
Agent X 2026-05-23 11:47:05 -04:00
parent 22dbda6007
commit eb3de50d07
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ end
--- @param flashlight Object
function delete_flashlight(flashlight)
le_remove_light(flashlight.oLightID)
flashlight.oLightID = -1
obj_mark_for_deletion(flashlight)
return nil
end

View file

@ -310,6 +310,7 @@ struct Object *allocate_object(struct ObjectNode *objList) {
obj->oIntangibleTimer = -1;
obj->oDamageOrCoinValue = 0;
obj->oHealth = 2048;
obj->oLightID = -1;
obj->oCollisionDistance = 1000.0f;
if (gCurrLevelNum == LEVEL_TTC) {