diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-01-09 13:23:43 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-01-09 13:23:43 +0100 |
commit | 16074a7c2c8197a061281a6880ddbc3967d8ea0c (patch) | |
tree | bd0cc650944aaeb38e87d43b94e43c1ab94bb2c7 /src/game-server/character.h | |
parent | 562b403a66a6a96d883620b27455564d50e3d49b (diff) | |
download | manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.gz manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.bz2 manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.xz manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.zip |
Replaced 'unsigned int' with 'unsigned'
Same thing, but shorter.
Diffstat (limited to 'src/game-server/character.h')
-rw-r--r-- | src/game-server/character.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game-server/character.h b/src/game-server/character.h index 11762291..5f3d3a64 100644 --- a/src/game-server/character.h +++ b/src/game-server/character.h @@ -45,22 +45,22 @@ class Trade; struct SpecialValue { - SpecialValue(unsigned int currentMana, + SpecialValue(unsigned currentMana, const SpecialManager::SpecialInfo *specialInfo) : currentMana(currentMana) , rechargeSpeed(specialInfo->defaultRechargeSpeed) , specialInfo(specialInfo) {} - unsigned int currentMana; - unsigned int rechargeSpeed; + unsigned currentMana; + unsigned rechargeSpeed; const SpecialManager::SpecialInfo *specialInfo; }; /** * Stores specials by their id. */ -typedef std::map<unsigned int, SpecialValue> SpecialMap; +typedef std::map<unsigned, SpecialValue> SpecialMap; /** * The representation of a player's character in the game world. @@ -255,14 +255,14 @@ class Character : public Being * attributes if it has changed. * @returns Whether it was changed. */ - bool recalculateBaseAttribute(unsigned int); + bool recalculateBaseAttribute(unsigned); /** * Attribute has changed, recalculate base value of dependant * attributes (and handle other actions for the modified * attribute) */ - void updateDerivedAttributes(unsigned int); + void updateDerivedAttributes(unsigned); /** * Calls all the "disconnected" listener. |