mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +00:00
MI corrections
This commit is contained in:
parent
b1ab36561d
commit
f08e996e76
1 changed files with 4 additions and 4 deletions
|
@ -111,7 +111,7 @@ static void R_InstallSpriteLump(UINT16 wad, // graphics patch
|
|||
// the lump should be used for all rotations
|
||||
if (sprtemp[frame].rotate == 0)
|
||||
CONS_Debug(DBG_SETUP, "R_InitSprites: Sprite %s frame %c has multiple rot = 0 lump\n", spritename, cn);
|
||||
else // Let's complain for both 1-8 and L/R rotations.
|
||||
else if (sprtemp[frame].rotate != 0xff) // Let's complain for both 1-8 and L/R rotations.
|
||||
CONS_Debug(DBG_SETUP, "R_InitSprites: Sprite %s frame %c has rotations and a rot = 0 lump\n", spritename, cn);
|
||||
|
||||
sprtemp[frame].rotate = 0;
|
||||
|
@ -154,6 +154,9 @@ static void R_InstallSpriteLump(UINT16 wad, // graphics patch
|
|||
else if (sprtemp[frame].rotate != 1)
|
||||
CONS_Debug(DBG_SETUP, "R_InitSprites: Sprite %s frame %c has both L/R and 1-8 rotations\n", spritename, cn);
|
||||
|
||||
// make 0 based
|
||||
rotation--;
|
||||
|
||||
if (rotation == 0 || rotation == 4) // Front or back...
|
||||
sprtemp[frame].rotate = 1; // Prevent L and R changeover
|
||||
else if (rotation > 3) // Right side
|
||||
|
@ -161,9 +164,6 @@ static void R_InstallSpriteLump(UINT16 wad, // graphics patch
|
|||
else // if (rotation <= 3) // Left side
|
||||
sprtemp[frame].rotate = (1 | (sprtemp[frame].rotate & 4)); // Continue allowing R frame changeover
|
||||
|
||||
// make 0 based
|
||||
rotation--;
|
||||
|
||||
if (sprtemp[frame].lumppat[rotation] != LUMPERROR)
|
||||
CONS_Debug(DBG_SETUP, "R_InitSprites: Sprite %s: %c%c has two lumps mapped to it\n", spritename, cn, '1'+rotation);
|
||||
|
||||
|
|
Loading…
Reference in a new issue