From 544f6eed30a8daed6d196f09a19236206d4fb06a Mon Sep 17 00:00:00 2001 From: skyjake Date: Sat, 16 Mar 2013 21:08:19 +0200 Subject: [PATCH] Fixed|Server: Crash when hit-testing mobjs A call was being made to a client-only API. --- doomsday/plugins/common/src/p_map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doomsday/plugins/common/src/p_map.c b/doomsday/plugins/common/src/p_map.c index 042281ad57..eb74d63e07 100644 --- a/doomsday/plugins/common/src/p_map.c +++ b/doomsday/plugins/common/src/p_map.c @@ -2971,12 +2971,14 @@ int PIT_CheckOnmobjZ(mobj_t* thing, void* data) else if(tmThing->origin[VZ] + tmThing->height < thing->origin[VZ]) return false; // Under thing. +#ifdef __CLIENT__ // Players cannot hit their clmobjs. if(tmThing->player) { if(thing == ClPlayer_ClMobj(tmThing->player - players)) return false; } +#endif if(thing->flags & MF_SOLID) onMobj = thing;