summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-28 20:42:51 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-28 20:42:51 +0000
commitc6213e58858a1fbe3c28ca79ed5a5c32976fac1f (patch)
treea0d2920d4b4684f566f8eb6b81f46d65a419007b /src
parent3ef9d42fab5fddf78abd3fad316234cf36055808 (diff)
downloadMana-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.gz
Mana-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.bz2
Mana-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.xz
Mana-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.zip
Fixed refreshing of stats window
Diffstat (limited to 'src')
-rw-r--r--src/gui/stats.cpp8
-rw-r--r--src/gui/stats.h1
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp
index 37eb7e63..e5d84821 100644
--- a/src/gui/stats.cpp
+++ b/src/gui/stats.cpp
@@ -104,28 +104,24 @@ void StatsWindow::action(const std::string& eventId) {
if (eventId == "STR") {
WFIFOW(2) = net_w_value(0x000d);
- update();
}
if (eventId == "AGI") {
WFIFOW(2) = net_w_value(0x000e);
- update();
}
if (eventId == "VIT") {
WFIFOW(2) = net_w_value(0x000f);
- update();
}
if (eventId == "INT") {
WFIFOW(2) = net_w_value(0x0010);
- update();
}
if (eventId == "DEX") {
WFIFOW(2) = net_w_value(0x0011);
- update();
}
if (eventId == "LUK") {
WFIFOW(2) = net_w_value(0x0012);
- update();
}
+ flush();
+ update();
WFIFOW(4) = net_b_value(1);
WFIFOSET(5);
}
diff --git a/src/gui/stats.h b/src/gui/stats.h
index deccba28..b1844e91 100644
--- a/src/gui/stats.h
+++ b/src/gui/stats.h
@@ -27,6 +27,7 @@
#include "button.h"
#include "window.h"
#include "../main.h"
+#include "../net/network.h"
#include <string>
#include <sstream>