Fix some warnings
This commit is contained in:
parent
05f8086400
commit
93bb145d48
2 changed files with 0 additions and 6 deletions
|
@ -902,8 +902,6 @@ Unit textureAt(int16_t x, int16_t y)
|
||||||
|
|
||||||
Unit rollAt(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 &&
|
if (x >= 0 && x < LEVEL_X_RES && y >= 0 && y < LEVEL_Y_RES &&
|
||||||
level[(LEVEL_Y_RES - y -1) * LEVEL_X_RES + x] == 6)
|
level[(LEVEL_Y_RES - y -1) * LEVEL_X_RES + x] == 6)
|
||||||
return sinInt(pokitto.frameCount * 10) + DOOR_ROLL_SIGN * UNITS_PER_SQUARE;
|
return sinInt(pokitto.frameCount * 10) + DOOR_ROLL_SIGN * UNITS_PER_SQUARE;
|
||||||
|
@ -1012,7 +1010,6 @@ int main()
|
||||||
|
|
||||||
int16_t moveDirection;
|
int16_t moveDirection;
|
||||||
int16_t rotationDirection;
|
int16_t rotationDirection;
|
||||||
bool strafe;
|
|
||||||
|
|
||||||
while (pokitto.isRunning())
|
while (pokitto.isRunning())
|
||||||
{
|
{
|
||||||
|
@ -1026,7 +1023,6 @@ int main()
|
||||||
|
|
||||||
moveDirection = 0;
|
moveDirection = 0;
|
||||||
rotationDirection = 0;
|
rotationDirection = 0;
|
||||||
strafe = false;
|
|
||||||
|
|
||||||
if (shotFired)
|
if (shotFired)
|
||||||
{
|
{
|
||||||
|
|
|
@ -197,8 +197,6 @@ void inline drawSpriteSquare(const unsigned char *sprite, int16_t x, int16_t y,
|
||||||
x -= size / 2;
|
x -= size / 2;
|
||||||
y -= size / 2;
|
y -= size / 2;
|
||||||
|
|
||||||
Unit step = UNITS_PER_SQUARE / size;
|
|
||||||
|
|
||||||
uint8_t c;
|
uint8_t c;
|
||||||
|
|
||||||
int16_t jTo = size - max(0,y + size - 88);
|
int16_t jTo = size - max(0,y + size - 88);
|
||||||
|
|
Loading…
Reference in a new issue