diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-06 18:24:02 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-06 18:24:02 +0000 |
commit | 6ae05cf7032a0a70e4953f6b53304f9658319f66 (patch) | |
tree | 8741a0789ffac237fa15d685e537bbf01e45ddc7 /src/main.cpp | |
parent | 8684a97f4a531c8e08fd1235ecfab2286ac68d5f (diff) | |
download | mana-client-6ae05cf7032a0a70e4953f6b53304f9658319f66.tar.gz mana-client-6ae05cf7032a0a70e4953f6b53304f9658319f66.tar.bz2 mana-client-6ae05cf7032a0a70e4953f6b53304f9658319f66.tar.xz mana-client-6ae05cf7032a0a70e4953f6b53304f9658319f66.zip |
Added possibility to choose the color of hair
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index a64a4076..1cf0fa1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,7 @@ char sex, n_server, n_character; SERVER_INFO *server_info; PLAYER_INFO *char_info = new PLAYER_INFO; -BITMAP *playerset; +BITMAP *playerset, *hairset; DATAFILE *graphic, *emotions; char username[25]; @@ -58,7 +58,7 @@ char map_name[16]; unsigned char state; unsigned short x, y; unsigned char direction; -unsigned short job, hair, hair_color; +//unsigned short job, hair, hair_color; unsigned char stretch_mode; // new sound-engine /- kth5 @@ -204,6 +204,9 @@ void init_engine() { emotions = load_datafile("./data/graphic/emotions.dat"); if(emotions==NULL) error("Unable to load emotions datafile"); + hairset = load_bitmap("./data/graphic/hairset.bmp", NULL); + if(hairset==NULL) + error("Unable to load hairset bitmap"); init_gui(buffer, "./data/Skin/aqua.skin"); state = LOGIN; |