mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 20:43:42 +01:00
Running clang-format
This commit is contained in:
parent
3dd4b6466a
commit
bbf366ed6e
3 changed files with 18 additions and 14 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue