Fix formatting

This commit is contained in:
Miloslav Číž 2020-11-03 20:53:22 +01:00
parent 05ba079c26
commit 4f6936d293
1 changed files with 16 additions and 20 deletions

22
game.h
View File

@ -1051,9 +1051,7 @@ void SFG_blitImage(
posY += scale * SFG_TEXTURE_SIZE;
y1 = posY >= 0 ?
(posY <= limitY ? posY : limitY)
: 0;
y1 = posY >= 0 ? (posY <= limitY ? posY : limitY) : 0;
if (y1 >= SFG_GAME_RESOLUTION_Y)
y1 = SFG_GAME_RESOLUTION_Y - 1;
@ -1348,14 +1346,12 @@ void SFG_initPlayer()
SFG_player.squarePosition[1] =
SFG_player.camera.position.y / RCL_UNITS_PER_SQUARE;
SFG_player.camera.height =
SFG_floorHeightAt(
SFG_player.camera.height = SFG_floorHeightAt(
SFG_currentLevel.levelPointer->playerStart[0],
SFG_currentLevel.levelPointer->playerStart[1]) +
RCL_CAMERA_COLL_HEIGHT_BELOW;
SFG_player.camera.direction =
SFG_currentLevel.levelPointer->playerStart[2] *
SFG_player.camera.direction = SFG_currentLevel.levelPointer->playerStart[2] *
(RCL_UNITS_PER_SQUARE / 256);
SFG_recomputePLayerDirection();
@ -3436,12 +3432,12 @@ void SFG_gameStepPlaying()
SFG_processEvent(SFG_EVENT_PLAYER_TELEPORTS,0);
break;
}
}
}
}
}
} // item collision check
} // if teleporterNumber == 0
} // for level items
} // if eliminate
} // if item collides
} // if element != 0
} // for, item collision check
if (!collidesWithTeleporter)
SFG_player.justTeleported = 0;