mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Fix mixed declaration and code error in A_RolloutRock (object_tweaks division 2)
This commit is contained in:
parent
c3fb7f4332
commit
73b662c575
1 changed files with 5 additions and 6 deletions
|
|
@ -14214,18 +14214,17 @@ void A_RolloutRock(mobj_t *actor)
|
||||||
{
|
{
|
||||||
INT32 locvar1 = var1;
|
INT32 locvar1 = var1;
|
||||||
INT32 locvar2 = var2;
|
INT32 locvar2 = var2;
|
||||||
|
|
||||||
#ifdef HAVE_BLUA
|
|
||||||
if (LUA_CallAction("A_RolloutRock", actor))
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
UINT8 maxframes = actor->info->reactiontime; // number of frames the mobj cycles through
|
UINT8 maxframes = actor->info->reactiontime; // number of frames the mobj cycles through
|
||||||
fixed_t pi = (22*FRACUNIT/7);
|
fixed_t pi = (22*FRACUNIT/7);
|
||||||
fixed_t circumference = FixedMul(2 * pi, actor->radius); // used to calculate when to change frame
|
fixed_t circumference = FixedMul(2 * pi, actor->radius); // used to calculate when to change frame
|
||||||
fixed_t speed = P_AproxDistance(actor->momx, actor->momy), topspeed = FixedMul(actor->info->speed, actor->scale);
|
fixed_t speed = P_AproxDistance(actor->momx, actor->momy), topspeed = FixedMul(actor->info->speed, actor->scale);
|
||||||
boolean inwater = actor->eflags & (MFE_TOUCHWATER|MFE_UNDERWATER);
|
boolean inwater = actor->eflags & (MFE_TOUCHWATER|MFE_UNDERWATER);
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
|
if (LUA_CallAction("A_RolloutRock", actor))
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
actor->friction = FRACUNIT; // turns out riding on solids sucks, so let's just make it easier on ourselves
|
actor->friction = FRACUNIT; // turns out riding on solids sucks, so let's just make it easier on ourselves
|
||||||
|
|
||||||
if (actor->threshold)
|
if (actor->threshold)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue