Extend SE 26 to use the value provided by a GPSPEED, if any.

git-svn-id: https://svn.eduke32.com/eduke32@5974 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-12-26 06:03:00 +00:00
parent 9627f24d54
commit 66f353fbf5

View file

@ -7352,7 +7352,7 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3
{ {
int32_t p, nextj; int32_t p, nextj;
pSprite->xvel = 32; pSprite->xvel = pSector->extra != 0 ? pSector->extra : 32;
l = (pSprite->xvel*sintable[(pSprite->ang+512)&2047])>>14; l = (pSprite->xvel*sintable[(pSprite->ang+512)&2047])>>14;
x = (pSprite->xvel*sintable[pSprite->ang&2047])>>14; x = (pSprite->xvel*sintable[pSprite->ang&2047])>>14;