diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-03 20:58:49 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-03 20:58:49 +0000 |
commit | 741ccf53b036a120cb6b0c90d5c29165a7e78742 (patch) | |
tree | 400d24fec33e05551dfa158c59d226db74da52f9 | |
parent | 17f6b9c94401e694bd669f3a700d65d3a52c32d1 (diff) | |
download | mana-client-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.gz mana-client-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.bz2 mana-client-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.xz mana-client-741ccf53b036a120cb6b0c90d5c29165a7e78742.zip |
Converted two global variables to function-local ones.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/engine.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -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; |