From 1eb07e21c7ebd91b74ac4c66a7286e2cd3b88ae9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 13 Sep 2024 00:22:27 +0200 Subject: [PATCH] renamed variable --- src/game_bd/bd_caveengine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game_bd/bd_caveengine.c b/src/game_bd/bd_caveengine.c index 57407ab4..2ea68c38 100644 --- a/src/game_bd/bd_caveengine.c +++ b/src/game_bd/bd_caveengine.c @@ -693,7 +693,7 @@ static inline void store_dir(GdCave *cave, const int x, const int y, // Store the element to (x, y) + dir, and store a space to (x, y). static inline void move(GdCave *cave, const int x, const int y, - const GdDirection dir, const GdElement e) + const GdDirection dir, const GdElement element) { // falling/flying game elements at wrap-around cave position should not kill player instantly if ((x + gd_dx[dir] == cave->w && dir == GD_MV_RIGHT) || @@ -702,13 +702,13 @@ static inline void move(GdCave *cave, const int x, const int y, // cave width/height out of bounds, but due to wrap-around it's the first column/row again if (el_can_smash_player(get(cave, x, y))) { - store(cave, x, y, e); // change to falling element ... + store(cave, x, y, element); // change to falling element ... - return; // ... but do not move element + return; // ... but do not move element } } - store_dir(cave, x, y, dir, e); + store_dir(cave, x, y, dir, element); store(cave, x, y, O_SPACE); } -- 2.34.1