mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'dedicated-battle-fix' into 'master'
Fix Battle Causing the game to crash in dedicated servers Closes #36 See merge request KartKrew/Kart!88
This commit is contained in:
commit
42ea3d02cc
1 changed files with 1 additions and 1 deletions
|
|
@ -6802,7 +6802,7 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
|
||||
mobj->angle = R_PointToAngle(mobj->x, mobj->y) + ANGLE_90; // literally only happened because i wanted to ^L^R the SPR_ITEM's
|
||||
|
||||
if (!splitscreen)
|
||||
if (!splitscreen && players[displayplayer].mo)
|
||||
{
|
||||
scale = mobj->target->scale + FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
||||
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue