From c6213e58858a1fbe3c28ca79ed5a5c32976fac1f Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Tue, 28 Dec 2004 20:42:51 +0000 Subject: Fixed refreshing of stats window --- src/gui/stats.cpp | 8 ++------ src/gui/stats.h | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/gui') 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 #include -- cgit v1.2.3-70-g09d2