summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-12-25 11:10:29 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-12-25 11:10:29 +0000
commitb9ad39c8de89ef780f396fbeaf7fe81686484f9b (patch)
tree6162318bbdcb13a7661ed7073c62e71fea988983
parentce4dec28c1432769ee19d84f77cd484c5d143200 (diff)
downloadmana-b9ad39c8de89ef780f396fbeaf7fe81686484f9b.tar.gz
mana-b9ad39c8de89ef780f396fbeaf7fe81686484f9b.tar.bz2
mana-b9ad39c8de89ef780f396fbeaf7fe81686484f9b.tar.xz
mana-b9ad39c8de89ef780f396fbeaf7fe81686484f9b.zip
Xmas quest update
-rw-r--r--The Mana World.dev2
-rw-r--r--src/game.cpp13
-rw-r--r--tmw.ini8
3 files changed, 16 insertions, 7 deletions
diff --git a/The Mana World.dev b/The Mana World.dev
index a6e869ba..e806fe55 100644
--- a/The Mana World.dev
+++ b/The Mana World.dev
@@ -33,7 +33,7 @@ CompilerSettings=0010001001001000001101
Major=0
Minor=0
Release=8
-Build=637
+Build=638
LanguageID=1033
CharsetID=1252
CompanyName=The Mana World Development Team
diff --git a/src/game.cpp b/src/game.cpp
index bc9377cf..98d8baab 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -337,11 +337,11 @@ void do_parse() {
if((i+1)%10==0)fprintf(file, "\n");
}
fclose(file);*/
-#ifdef DEBUG
+//#ifdef DEBUG
FILE *file = fopen("./docs/packet.list", "ab");
fprintf(file, "%x\n", RFIFOW(0));
fclose(file);
-#endif
+//#endif
// Parse packet based on their id
switch(id) {
@@ -521,8 +521,8 @@ void do_parse() {
break;
//Get the items
case 0x01ee:
- for(int loop=0;loop<(RFIFOW(2)-4)/18;loop++)
- inventory.add_item(RFIFOW(4+loop*18), RFIFOW(4+loop*18+2), RFIFOW(4+loop*18+6));
+ for(int loop=0;loop<(RFIFOW(2)-4)/18;loop++) {
+ inventory.add_item(RFIFOW(4+loop*18), RFIFOW(4+loop*18+2), RFIFOW(4+loop*18+6)); }
break;
case 0x00a8: // could I use the item?
// index RFIFOW(2)
@@ -843,6 +843,11 @@ void do_parse() {
node->hair_style = RFIFOB(7);
}
break;
+ case 0x00a4:
+ for(int i=0;i<(RFIFOW(2)-4)/20;i++)
+ inventory.add_item(RFIFOW(4+20*i), RFIFOW(6+20*i), 1);
+ break;
+
// Manage non implemented packets
default:
//printf("%x\n",id);
diff --git a/tmw.ini b/tmw.ini
index 3b7db313..17e2ad83 100644
--- a/tmw.ini
+++ b/tmw.ini
@@ -5,9 +5,9 @@ language =
core_version = 0.0.8
[server]
-host = animesites.de
+#host = animesites.de
#host = themanaworld.homeip.net
-#host = localhost
+host = localhost
#host = telekommunisten.dyndns.org
#host = 81.227.114.113
port = 6901
@@ -28,6 +28,10 @@ chatlog = chatlog.txt
# 1 2xSaI
# 2 SuperEagle
stretch = 0
+# Hardware acceleration
+# 0 Disabled
+# 1 Enabled
+hw_accel = 0
[login]
remember = 1