summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/statuswindow.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index 231b4d9b5..e2c65f827 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -47,6 +47,7 @@
#include "net/inventoryhandler.h"
#include "net/playerhandler.h"
+#include "net/serverfeatures.h"
#include "resources/item/item.h"
@@ -796,11 +797,18 @@ void ChangeDisplay::action(const ActionEvent &event)
const int newbase = PlayerInfo::getStatBase(mId) + cnt;
PlayerInfo::setStatBase(mId, newbase);
- for (int f = 0; f < mInc->getClickCount(); f ++)
+ if (serverFeatures->haveMultyStatusUp())
{
- playerHandler->increaseAttribute(mId, 1);
- if (cnt != 1)
- SDL_Delay(100);
+ playerHandler->increaseAttribute(mId, cnt);
+ }
+ else
+ {
+ for (int f = 0; f < cnt; f ++)
+ {
+ playerHandler->increaseAttribute(mId, 1);
+ if (cnt != 1)
+ SDL_Delay(100);
+ }
}
}
}