Running clang-format

This commit is contained in:
mibi88 2024-07-31 17:12:12 +02:00
parent 3dd4b6466a
commit bbf366ed6e
3 changed files with 18 additions and 14 deletions

View file

@ -94,7 +94,11 @@ void player_move(Game *game, Direction direction) {
player->wy = game->map_level->y * T_HEIGHT * PXSIZE + player->y; player->wy = game->map_level->y * T_HEIGHT * PXSIZE + player->y;
/* Check if we should change map */ /* Check if we should change map */
Map *target = map_get_for_tile(game, game->map_level->x+player->x/T_WIDTH+one_px_mov[direction * 2], game->map_level->y+player->y/T_HEIGHT+one_px_mov[direction * 2 + 1]); Map *target = map_get_for_tile(game,
game->map_level->x + player->x / T_WIDTH +
one_px_mov[direction * 2],
game->map_level->y + player->y / T_HEIGHT +
one_px_mov[direction * 2 + 1]);
if(target != game->map_level) { if(target != game->map_level) {
if(target->x > game->map_level->x) { if(target->x > game->map_level->x) {
player->x = 0; player->x = 0;