Fix some warnings

This commit is contained in:
Miloslav Číž 2018-09-15 12:10:32 +02:00
parent 05f8086400
commit 93bb145d48
2 changed files with 0 additions and 6 deletions

View file

@ -902,8 +902,6 @@ Unit textureAt(int16_t x, int16_t y)
Unit rollAt(int16_t x, int16_t y)
{
Unit square = textureAt(x,y);
if (x >= 0 && x < LEVEL_X_RES && y >= 0 && y < LEVEL_Y_RES &&
level[(LEVEL_Y_RES - y -1) * LEVEL_X_RES + x] == 6)
return sinInt(pokitto.frameCount * 10) + DOOR_ROLL_SIGN * UNITS_PER_SQUARE;
@ -1012,7 +1010,6 @@ int main()
int16_t moveDirection;
int16_t rotationDirection;
bool strafe;
while (pokitto.isRunning())
{
@ -1026,7 +1023,6 @@ int main()
moveDirection = 0;
rotationDirection = 0;
strafe = false;
if (shotFired)
{

View file

@ -197,8 +197,6 @@ void inline drawSpriteSquare(const unsigned char *sprite, int16_t x, int16_t y,
x -= size / 2;
y -= size / 2;
Unit step = UNITS_PER_SQUARE / size;
uint8_t c;
int16_t jTo = size - max(0,y + size - 88);