diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-03-28 11:41:47 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-03-28 11:41:47 +0000 |
commit | 3988a7e0cf39c60662241d69ed8ad7211fb3d5e5 (patch) | |
tree | 06c91e7d700bf2481be101ab27f0a1a7020a5272 /src/game.cpp | |
parent | 59f969ed131e242bf8360656094deb9728d70b26 (diff) | |
download | mana-3988a7e0cf39c60662241d69ed8ad7211fb3d5e5.tar.gz mana-3988a7e0cf39c60662241d69ed8ad7211fb3d5e5.tar.bz2 mana-3988a7e0cf39c60662241d69ed8ad7211fb3d5e5.tar.xz mana-3988a7e0cf39c60662241d69ed8ad7211fb3d5e5.zip |
Graphics updates
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/game.cpp b/src/game.cpp index 041274d2..b7fd9f86 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -125,14 +125,16 @@ void game() { void do_init() { - //tiledMap = Map::load(map_path); - //std::string path(map_path); - - /*std::string pathDir = path.substr(0, path.rfind(".") + 1); - pathDir.insert(pathDir.size(), "tmx.gz");*/ - + /*tiledMap = Map::load(map_path); + std::cout << map_path << std::endl;*/ + std::string path(map_path); + + std::string pathDir = path.substr(0, path.rfind(".") + 1); + pathDir.insert(pathDir.size(), "tmx"); + + //tiledMap = Map::load("data/maps/new_3-1.tmx.gz"); + //std::cout << pathDir << std::endl; tiledMap = Map::load(map_path); - std::cout << map_path << std::endl; if (!tiledMap) { logger.error("Could not find map file"); |