Skip to content

Commit

Permalink
Server|Fixed: Crash due to calling a client-only API function
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 2, 2013
1 parent c20e7ea commit 2e6ca15
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions doomsday/plugins/common/src/mobj.c
Expand Up @@ -166,12 +166,15 @@ void Mobj_XYMoveStopping(mobj_t* mo)

boolean Mobj_IsPlayerClMobj(mobj_t* mo)
{
int i;

for(i = 0; i < MAXPLAYERS; i++)
if(IS_CLIENT)
{
if(ClPlayer_ClMobj(i) == mo)
return true;
int i;

for(i = 0; i < MAXPLAYERS; i++)
{
if(ClPlayer_ClMobj(i) == mo)
return true;
}
}
return false;
}
Expand Down

0 comments on commit 2e6ca15

Please sign in to comment.