Move light source and timer types so zero means none

Breaks saves and bones.
This commit is contained in:
Pasi Kallinen
2024-05-06 19:52:05 +03:00
parent dba37fa768
commit 7139ee7446
5 changed files with 21 additions and 9 deletions

View File

@@ -103,6 +103,10 @@ del_light_source(int type, anything *id)
has only been partially restored during a level change
(in particular: chameleon vs prot. from shape changers) */
switch (type) {
case LS_NONE:
impossible("del_light_source:type=none");
tmp_id.a_uint = 0;
break;
case LS_OBJECT:
tmp_id.a_uint = id->a_obj ? id->a_obj->o_id : 0;
break;