Skip to content

Commit

Permalink
Fixed: Vissprites produced for mobjs whose origin sector is of zero h…
Browse files Browse the repository at this point in the history
…eight.
  • Loading branch information
danij-deng committed Apr 4, 2010
1 parent 50a46c9 commit 1d6a97f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/engine/portable/src/r_things.c
Expand Up @@ -1170,6 +1170,10 @@ void R_ProjectSprite(mobj_t* mo)
// a valid state.
return;
}
if(sect->SP_floorvisheight >= sect->SP_ceilvisheight)
{ // Never make a vissprite when the mobj's origin sector is of zero height.
return;
}

// Transform the origin point.
pos[VX] = mo->pos[VX] - viewData->current.pos[VX];
Expand Down

0 comments on commit 1d6a97f

Please sign in to comment.