mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-06-07 08:31:25 +00:00
Default object light ID to -1
Some checks are pending
Some checks are pending
This commit is contained in:
parent
22dbda6007
commit
eb3de50d07
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue