summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-26 22:22:22 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-06 00:27:26 +0100
commitc75511fffc77d517fbf854ec8bef791f055de44c (patch)
treec431846c7d7a6934f103d21129a20a0dc4fd1c8e /src/localplayer.h
parent646cc317351d60e0fefcab789248310662fcbbc8 (diff)
downloadmana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.gz
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.bz2
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.tar.xz
mana-client-c75511fffc77d517fbf854ec8bef791f055de44c.zip
Got rid of Sint{8,16,32} and Uint32 for being ID
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 2226671b..ba6e7670 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -228,8 +228,8 @@ class LocalPlayer : public Player
Uint8 mAttr[6];
Uint8 mAttrUp[6];
- Sint16 ATK, MATK, DEF, MDEF, HIT, FLEE;
- Sint16 ATK_BONUS, MATK_BONUS, DEF_BONUS, MDEF_BONUS, FLEE_BONUS;
+ int ATK, MATK, DEF, MDEF, HIT, FLEE;
+ int ATK_BONUS, MATK_BONUS, DEF_BONUS, MDEF_BONUS, FLEE_BONUS;
Uint16 mStatPoint, mSkillPoint;
Uint16 mStatsPointsToAttribute;