summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-20 20:56:59 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-20 20:56:59 +0000
commit7ce021a8e4fce72af6e79cad22243bdd50bb8656 (patch)
tree06f9eadde06667d640f94e8ecc8b526a45af402d /src/game.cpp
parent368c9002365118212d9ef9b6bb00f9148522770f (diff)
downloadmana-client-7ce021a8e4fce72af6e79cad22243bdd50bb8656.tar.gz
mana-client-7ce021a8e4fce72af6e79cad22243bdd50bb8656.tar.bz2
mana-client-7ce021a8e4fce72af6e79cad22243bdd50bb8656.tar.xz
mana-client-7ce021a8e4fce72af6e79cad22243bdd50bb8656.zip
Reverted changes to skill dialog, a new one will be developed alongside it so
that the current one remains working for now. Also XML maps now can load but not the base64 or gzip kind yet.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index be2eacb8..e9edee54 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -33,6 +33,7 @@
#include "gui/stats.h"
#include "gui/ok_dialog.h"
#include "graphic/graphic.h"
+#include "resources/mapreader.h"
#include "sound.h"
#include <SDL.h>
@@ -123,6 +124,7 @@ void game() {
void do_init()
{
tiledMap = Map::load(map_path);
+ //tiledMap = MapReader::readMap("map/desert.tmx");
if (!tiledMap) {
error("Could not find map file");
}
@@ -707,6 +709,7 @@ void do_parse() {
break;
case 0x000c:
char_info->skill_point = RFIFOW(4);
+ skillDialog->setPoints(char_info->skill_point);
break;
case 0x0037:
char_info->job_lv = RFIFOW(4);
@@ -926,7 +929,7 @@ void do_parse() {
int n_skills = (len - 4) / 37;
for (int k = 0; k < n_skills; k++)
{
- /*if (RFIFOW(4 + k * 37 + 6) != 0 ||
+ if (RFIFOW(4 + k * 37 + 6) != 0 ||
RFIFOB(4 + k * 37 + 36)!=0)
{
int skillId = RFIFOW(4 + k * 37);
@@ -941,7 +944,7 @@ void do_parse() {
RFIFOW(4 + k * 37 + 6),
RFIFOW(4 + k * 37 + 8));
}
- }*/
+ }
}
} break;
// MVP experience