mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
handle clipping like literally every hw renderer ever
This commit is contained in:
parent
998ee7b6b2
commit
e219645577
1 changed files with 5 additions and 0 deletions
|
@ -259,6 +259,11 @@ static boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef,
|
|||
//BP: we cannot use special tric in hardware mode because feet in ground caused by z-buffer
|
||||
if (rendermode != render_none) // not for psprite
|
||||
spritecachedinfo[numspritelumps].topoffset += 4<<FRACBITS;
|
||||
|
||||
// Idea, how about we do it like literally every hardware renderer ever?
|
||||
if (rendermode == render_opengl)
|
||||
spritecachedinfo[numspritelumps].topoffset += 5<<FRACBITS;
|
||||
|
||||
// Being selective with this causes bad things. :( Like the special stage tokens breaking apart.
|
||||
/*if (rendermode != render_none // not for psprite
|
||||
&& SHORT(patch.topoffset)>0 && SHORT(patch.topoffset)<SHORT(patch.height))
|
||||
|
|
Loading…
Reference in a new issue