ref: 8ddc713957a1ecf73b83c1d28b558220a4caa50f
parent: 88afab222ba798f948ef753c45641a5f142208ad
author: Tanguy Fautre <[email protected]>
date: Sun Feb 16 16:56:00 EST 2020
Fix cranes not moving to pick up player (regression from code old cleanup).
--- a/Game/src/actors.c
+++ b/Game/src/actors.c
@@ -1293,7 +1293,7 @@
s->xvel = 128;
s->ang = p->ang;
s->extra++;
-
+ IFMOVING;
}
else
{
@@ -1570,7 +1570,7 @@
s->picnum = CRANE+1;
s->xvel += 8;
}
-
+ IFMOVING;
if(sect == t[1])
t[0]++;
}
@@ -1665,7 +1665,7 @@
if( s->xvel < 192 )
s->xvel += 8;
s->ang = getangle(msx[t[4]]-s->x,msy[t[4]]-s->y);
-
+ IFMOVING;
if( ((s->x-msx[t[4]])*(s->x-msx[t[4]])+(s->y-msy[t[4]])*(s->y-msy[t[4]]) ) < (128*128) )
t[0]++;
}