summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/engine.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bb7ed5d1..32230b5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
though the rest was commented.
* src/resources/buddylist.cpp, src/main.h: Removed unneeded header from
main.h, added it to buddylist.cpp.
+ * src/engine.cpp: Converted two global variables to function-local ones.
2005-08-02 Andrej Sinicyn <andrej4000@gmail.com>
diff --git a/src/engine.cpp b/src/engine.cpp
index 6144f946..7901acac 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -55,7 +55,7 @@ extern Being* autoTarget;
extern Graphics* graphics;
char itemCurrenyQ[10] = "0";
-int map_x, map_y, camera_x, camera_y;
+int camera_x, camera_y;
gcn::Label *debugInfo;
@@ -329,8 +329,8 @@ void Engine::draw()
int mouseX, mouseY;
SDL_GetMouseState(&mouseX, &mouseY);
- map_x = (player_node->x - 13) * 32 + get_x_offset(player_node);
- map_y = (player_node->y - 9) * 32 + get_y_offset(player_node);
+ int map_x = (player_node->x - 13) * 32 + get_x_offset(player_node);
+ int map_y = (player_node->y - 9) * 32 + get_y_offset(player_node);
if (map_x < 0) {
map_x = 0;