diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 89ed4156c..3cb587774 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -667,6 +667,7 @@ inline void G_AddGameLight(int32_t radius, int32_t srcsprite, int32_t zoffset, i ActorExtra[srcsprite].lightmaxrange = mylight.range = range; mylight.priority = priority; + mylight.tilenum = 0; ActorExtra[srcsprite].lightId = polymer_addlight(&mylight); if (ActorExtra[srcsprite].lightId >= 0) @@ -7579,6 +7580,7 @@ static void G_MoveEffectors(void) //STATNUM 3 mylight.horiz = SH; mylight.minshade = sprite[i].xoffset; mylight.maxshade = sprite[i].yoffset; + mylight.tilenum = 0; if (CS & 2) { @@ -7641,6 +7643,7 @@ static void G_MoveEffectors(void) //STATNUM 3 mylight.horiz = SH; mylight.minshade = sprite[i].xoffset; mylight.maxshade = sprite[i].yoffset; + mylight.tilenum = 0; if (CS & 2) { diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 6920c9f29..a1f46bb04 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -10149,6 +10149,7 @@ void ExtPreCheckKeys(void) // just before drawrooms mylight.horiz = SH; mylight.minshade = sprite[i].xoffset; mylight.maxshade = sprite[i].yoffset; + mylight.tilenum = 0; if (CS & 2) { @@ -10210,6 +10211,7 @@ void ExtPreCheckKeys(void) // just before drawrooms mylight.horiz = SH; mylight.minshade = sprite[i].xoffset; mylight.maxshade = sprite[i].yoffset; + mylight.tilenum = 0; if (CS & 2) {