Skip to content
Snippets Groups Projects
Commit aff5b52e authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

change ROTANGLES to 72

parent 8422c880
No related branches found
No related tags found
2 merge requests!718Rename R_IsPointInSubsector to R_PointInSubsectorOrNull/Nil,!547rollangle and SpriteInfo changes
......@@ -625,7 +625,7 @@ extern const char *compdate, *comptime, *comprevision, *compbranch;
/// Sprite rotation
#define ROTSPRITE
#define ROTANGLES 360 // Needs to be a divisor of 360 (45, 60, 90, 120...)
#define ROTANGLES 72 // Needs to be a divisor of 360 (45, 60, 90, 120...)
#define ROTANGDIFF (360 / ROTANGLES)
#ifndef HAVE_PNG
......
......@@ -1102,7 +1102,7 @@ static UINT16 GetPatchPixel(patch_t *patch, INT32 x, INT32 y, boolean flip)
column_t *column;
UINT8 *source;
if (x < SHORT(patch->width))
if (x >= 0 && x < SHORT(patch->width))
{
INT32 topdelta, prevdelta = -1;
column = (column_t *)((UINT8 *)patch + LONG(patch->columnofs[flip ? (patch->width-1-x) : x]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment