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 /src/engine.cpp | |
parent | 17f6b9c94401e694bd669f3a700d65d3a52c32d1 (diff) | |
download | mana-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.gz mana-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.bz2 mana-741ccf53b036a120cb6b0c90d5c29165a7e78742.tar.xz mana-741ccf53b036a120cb6b0c90d5c29165a7e78742.zip |
Converted two global variables to function-local ones.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |