summaryrefslogtreecommitdiff
path: root/src/gui/stats.cpp
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/gui/stats.cpp
parent3ef9d42fab5fddf78abd3fad316234cf36055808 (diff)
downloadmana-client-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.gz
mana-client-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.bz2
mana-client-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.tar.xz
mana-client-c6213e58858a1fbe3c28ca79ed5a5c32976fac1f.zip
Fixed refreshing of stats window
Diffstat (limited to 'src/gui/stats.cpp')
-rw-r--r--src/gui/stats.cpp8
1 files changed, 2 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);
}