shithub: rott

Download patch

ref: 482697a25274f008c951a2ef73d79dd018ab5018
parent: 3a0cc95c9cd16a78812a13535384888b7417649f
author: levesqu8 <levesqu8@msu.edu>
date: Sat Sep 30 13:17:11 EDT 2017

fixed compiling errors

--- a/rott/rt_actor.c
+++ b/rott/rt_actor.c
@@ -3722,11 +3722,11 @@
     
     for (thing = &enemiesToRes[0]; thing < &enemiesToRes[freeSlot]; thing++)
     {
-        if (gamestate.TimeCount/(VBLCOUNTER) >= actor->timeOfResurrect)
+        if (gamestate.TimeCount/(VBLCOUNTER) >= thing->timeOfResurrect)
         {
-            SD_PlaySoundRTP(SD_PLAYERSPAWNSND, actor->actor->x, actor->actor->y);
-            SpawnDuringGameWithState (actor->actor->obclass,actor->actor->tilex,actor->actor->tiley,actor->actor->dir, 1, actor->actor->state);
-            actor = 0;
+            SD_PlaySoundRTP(SD_PLAYERSPAWNSND, thing->actor->x, thing->actor->y);
+            SpawnDuringGameWithState (thing->actor->obclass,thing->actor->tilex,thing->actor->tiley,thing->actor->dir, 1, thing->actor->state);
+            thing = 0;
             freeSlot--;
         }   
     }