This commit is contained in:
Miloslav Číž 2020-03-22 19:51:51 +01:00
parent 125796cf8d
commit de70658447

7
main.c
View File

@ -621,7 +621,7 @@ static inline void SFG_setGamePixel(uint16_t x, uint16_t y, uint8_t colorIndex)
} }
#endif #endif
void SFG_recompurePLayerDirection() void SFG_recomputePLayerDirection()
{ {
SFG_player.camera.direction = SFG_player.camera.direction =
RCL_wrap(SFG_player.camera.direction,RCL_UNITS_PER_SQUARE); RCL_wrap(SFG_player.camera.direction,RCL_UNITS_PER_SQUARE);
@ -1107,7 +1107,7 @@ void SFG_initPlayer()
SFG_currentLevel.levelPointer->playerStart[2] * SFG_currentLevel.levelPointer->playerStart[2] *
(RCL_UNITS_PER_SQUARE / 256); (RCL_UNITS_PER_SQUARE / 256);
SFG_recompurePLayerDirection(); SFG_recomputePLayerDirection();
SFG_player.previousVerticalSpeed = 0; SFG_player.previousVerticalSpeed = 0;
@ -1166,7 +1166,6 @@ void SFG_getItemSprite(
{ {
case SFG_LEVEL_ELEMENT_TREE: case SFG_LEVEL_ELEMENT_TREE:
case SFG_LEVEL_ELEMENT_RUIN: case SFG_LEVEL_ELEMENT_RUIN:
case SFG_LEVEL_ELEMENT_LAMP:
*spriteSize = 2; *spriteSize = 2;
break; break;
@ -2716,7 +2715,7 @@ void SFG_gameStepPlaying()
} }
if (recomputeDirection) if (recomputeDirection)
SFG_recompurePLayerDirection(); SFG_recomputePLayerDirection();
if (SFG_keyIsDown(SFG_KEY_UP)) if (SFG_keyIsDown(SFG_KEY_UP))
{ {