mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Give map-placed bananas a random angle
This commit is contained in:
parent
aa7c7df27c
commit
c22d652add
1 changed files with 8 additions and 0 deletions
|
|
@ -12734,6 +12734,14 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
|
||||||
|
|
||||||
// Increment no. of capsules on the map counter
|
// Increment no. of capsules on the map counter
|
||||||
maptargets++;
|
maptargets++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case MT_BANANA:
|
||||||
|
{
|
||||||
|
// Give Duel bananas a random angle
|
||||||
|
mobj->angle = FixedMul(P_RandomFixed(PR_DECORATION), ANGLE_MAX);
|
||||||
|
*doangle = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue