diff options
author | Samuel Villareal | 2010-09-01 05:44:46 +0000 |
---|---|---|
committer | Samuel Villareal | 2010-09-01 05:44:46 +0000 |
commit | 0896e8f879ab0cb133c27eb6ad5b23e167205bf7 (patch) | |
tree | 634e92a99e8ff4280a1421f2f98bba6dc954c9ba /src/strife/r_things.c | |
parent | b10d4acc24278460fc357aa974d7e3e56f0d5953 (diff) | |
download | chocolate-doom-0896e8f879ab0cb133c27eb6ad5b23e167205bf7.tar.gz chocolate-doom-0896e8f879ab0cb133c27eb6ad5b23e167205bf7.tar.bz2 chocolate-doom-0896e8f879ab0cb133c27eb6ad5b23e167205bf7.zip |
+ Terrain type system implemented
+ Feet clipping support added (drawing and player viewz) (TODO: Need
FeetClipping support done for P_ZMovement)
Subversion-branch: /branches/strife-branch
Subversion-revision: 1992
Diffstat (limited to 'src/strife/r_things.c')
-rw-r--r-- | src/strife/r_things.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/strife/r_things.c b/src/strife/r_things.c index 68f4b2fe..82039dd8 100644 --- a/src/strife/r_things.c +++ b/src/strife/r_things.c @@ -553,7 +553,14 @@ void R_ProjectSprite (mobj_t* thing) vis->gx = thing->x; vis->gy = thing->y; vis->gz = thing->z; - vis->gzt = thing->z + spritetopoffset[lump]; + + // villsa [STRIFE] + if(thing->flags & MF_FEETCLIPPED) + vis->gz -= (10*FRACUNIT); + + // villsa [STRIFE] + vis->gzt = vis->gz + spritetopoffset[lump]; + vis->texturemid = vis->gzt - viewz; vis->x1 = x1 < 0 ? 0 : x1; vis->x2 = x2 >= viewwidth ? viewwidth-1 : x2; |