Browse Source

Removed superfluous ActorPointers in BoardArrow_Position

ijon 2 years ago
parent
commit
b2c6b05839
2 changed files with 2 additions and 7 deletions
  1. 2 7
      pk3/acs/board.h
  2. BIN
      pk3/acs/lmaodice.o

+ 2 - 7
pk3/acs/board.h

@@ -102,13 +102,10 @@ script "BoardArrow_Position" (void)
     int myTID     = UniqueTID();
     Thing_ChangeTID(0, myTID);
     
-    int fromPtr = ACS_Call("APtr_New", 0, ARROW_FROM);
-    int toPtr   = ACS_Call("APtr_New", 0, ARROW_TO);
-    
-    SetActivator(fromPtr, LINK_ACTOR);
+    SetActivator(0, ARROW_FROM);
     int fromX = GetActorX(0), fromY = GetActorY(0), fromZ = GetActorZ(0);
     
-    SetActivator(toPtr, LINK_ACTOR);
+    SetActivator(myTID, ARROW_TO);
     int toX = GetActorX(0), toY = GetActorY(0), toZ = GetActorZ(0);
     
     int diffX   = toX - fromX;
@@ -137,8 +134,6 @@ script "BoardArrow_Position" (void)
     }
     
     Thing_ChangeTID(0, myTID_old);
-    Thing_Remove(fromPtr);
-    Thing_Remove(toPtr);
 }
 
 

BIN
pk3/acs/lmaodice.o