summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-02 14:50:50 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-02 14:50:50 +0000
commite25b9848449f109487fdbab53f4e99c28b8d3214 (patch)
tree33cf564cd24cf01df10f36e2616ab2c5b1cc8900 /src
parenta294e49ed9994902251b536ffba853f056453ddd (diff)
downloadmana-e25b9848449f109487fdbab53f4e99c28b8d3214.tar.gz
mana-e25b9848449f109487fdbab53f4e99c28b8d3214.tar.bz2
mana-e25b9848449f109487fdbab53f4e99c28b8d3214.tar.xz
mana-e25b9848449f109487fdbab53f4e99c28b8d3214.zip
Don't load the weapon set, doesn't seem to be used at the moment even.
Diffstat (limited to 'src')
-rw-r--r--src/graphic/graphic.cpp6
-rw-r--r--src/main.cpp7
-rw-r--r--src/main.h2
3 files changed, 4 insertions, 11 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 7b29ea66..e05842d6 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -202,12 +202,12 @@ GraphicEngine::GraphicEngine() {
// Initialize the gui bitmap to the page that will be drawn first
gui_bitmap = this->buffer;
- tileset = new Spriteset("./data/graphic/tileset.dat");
- hairset = new Spriteset("./data/graphic/hairset.dat");
emotionset = new Spriteset("./data/graphic/emotionset.dat");
+ hairset = new Spriteset("./data/graphic/hairset.dat");
+ monsterset = new Spriteset("./data/graphic/monsterset.dat");
npcset = new Spriteset("./data/graphic/npcset.dat");
playerset = new Spriteset("./data/graphic/playerset.dat");
- monsterset = new Spriteset("./data/graphic/monsterset.dat");
+ tileset = new Spriteset("./data/graphic/tileset.dat");
}
GraphicEngine::~GraphicEngine() {
diff --git a/src/main.cpp b/src/main.cpp
index c6690fea..a73f65eb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -73,7 +73,6 @@ SERVER_INFO *server_info;
PLAYER_INFO *char_info = new PLAYER_INFO;
BITMAP *playerset, *hairset, *login_wallpaper;
-DATAFILE *weaponset;
char username[LEN_USERNAME];
char password[LEN_PASSWORD];
@@ -280,12 +279,6 @@ void init_engine() {
error("Unable to load hairset bitmap");
}
- // TODO: Remove datafile usage
- weaponset = load_datafile("./data/graphic/weapon.dat");
- if (weaponset == NULL) {
- error("Unable to load weaponset datafile");
- }
-
// TODO: Remove Allegro config file usage from GUI look
init_gui(buffer, "./data/Skin/aqua.skin");
state = LOGIN;
diff --git a/src/main.h b/src/main.h
index 96714cbb..d46953ba 100644
--- a/src/main.h
+++ b/src/main.h
@@ -85,7 +85,7 @@ typedef struct {
} PLAYER_INFO;
extern BITMAP *playerset, *login_wallpaper;
-extern DATAFILE *emotions, *weaponset;
+extern DATAFILE *emotions;
extern char username[25];
extern char password[25];
extern int map_address, char_ID;