diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
commit | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (patch) | |
tree | 5084eaa47d4874a3a573de226f19c4be072e4888 /src/main.cpp | |
parent | 19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (diff) | |
download | Mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.gz Mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.bz2 Mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.xz Mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.zip |
Reverted changeset r2269 (toString) as requested by ElvenProgrammer.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index d067d3c9..e3fbdca6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include <getopt.h> #include <iostream> #include <physfs.h> +#include <sstream> #include <unistd.h> #include <vector> #include <SDL_image.h> @@ -77,7 +78,6 @@ #include "resources/resourcemanager.h" #include "utils/dtor.h" -#include "utils/tostring.h" // Account infos char n_server, n_character; @@ -266,9 +266,10 @@ void init_engine() for (int i=0; i < NR_HAIR_STYLES; i++) { + std::stringstream filename; + filename << "graphics/sprites/hairstyle" << (i + 1) << ".png"; Spriteset *tmp = ResourceManager::getInstance()->createSpriteset( - "graphics/sprites/hairstyle" + toString(i + 1) + ".png", - 40, 40); + filename.str(), 40, 40); if (!tmp) { logger->error("Unable to load hairstyle"); } else { |