Skip to content

Commit

Permalink
Client: MobjThinker ignores partial/unpredictable clmobjs
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 15, 2011
1 parent 1e47795 commit a66ee86
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/api/doomsday.def
Expand Up @@ -3,7 +3,6 @@ NAME "DOOMSDAY"
; Highest ordinal is currently
; --> 448 <--
; Other free ordinals:
; 43 formerly P_RegisterPlayerControl
; 44 formerly B_FormEventString
; 45 formerly B_BindingsForCommand
; 65 formerly P_GetBlockRootIdx
Expand Down Expand Up @@ -298,6 +297,7 @@ EXPORTS
P_MobjUnlink @67 NONAME
P_MobjLinesIterator @71 NONAME
P_MobjSectorsIterator @72 NONAME
ClMobj_IsValid @43 NONAME

; Play: Polyobjs.
P_PolyobjMove @79 NONAME
Expand Down
1 change: 1 addition & 0 deletions doomsday/engine/api/doomsday.h
Expand Up @@ -278,6 +278,7 @@ extern "C" {
void P_MobjSetState(struct mobj_s* mo, int statenum);
void P_MobjLink(struct mobj_s* mo, byte flags);
int P_MobjUnlink(struct mobj_s* mo);
boolean ClMobj_IsValid(struct mobj_s* mo);

// Mobj linked object iterators.
boolean P_MobjLinesIterator(struct mobj_s* mo,
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/cl_mobj.c
Expand Up @@ -736,7 +736,7 @@ boolean ClMobj_IsValid(mobj_t* mo)
{
clmoinfo_t* info = ClMobj_GetInfo(mo);

if(!Cl_IsClientMobj(mo)) return false;
if(!Cl_IsClientMobj(mo)) return true;
if(info->flags & (CLMF_HIDDEN | CLMF_UNPREDICTABLE))
{
// Should not use this for playsim.
Expand Down
9 changes: 2 additions & 7 deletions doomsday/plugins/jdoom/src/p_mobj.c
Expand Up @@ -655,13 +655,8 @@ void P_MobjThinker(mobj_t* mo)
if(!mo)
return; // Wha?

/*
if(mo->ddFlags & DDMF_REMOTE)
{
Con_Message("P_MobjThinker: mo %i is remote, ignored for now\n", mo->thinker.id);
return; // Remote mobjs are handled separately.
}
*/
if(IS_CLIENT && !ClMobj_IsValid(mo))
return; // We should not touch this right now.

// Spectres get selector = 1.
if(mo->type == MT_SHADOWS)
Expand Down

0 comments on commit a66ee86

Please sign in to comment.