summaryrefslogtreecommitdiff
path: root/src/game-server/attribute.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
commit16074a7c2c8197a061281a6880ddbc3967d8ea0c (patch)
treebd0cc650944aaeb38e87d43b94e43c1ab94bb2c7 /src/game-server/attribute.cpp
parent562b403a66a6a96d883620b27455564d50e3d49b (diff)
downloadmanaserv-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/attribute.cpp')
-rw-r--r--src/game-server/attribute.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/attribute.cpp b/src/game-server/attribute.cpp
index 31d743f4..3d0f5510 100644
--- a/src/game-server/attribute.cpp
+++ b/src/game-server/attribute.cpp
@@ -133,7 +133,7 @@ bool durationCompare(const AttributeModifierState *lhs,
return lhs->mDuration < rhs->mDuration;
}
-bool AttributeModifiersEffect::remove(double value, unsigned int id,
+bool AttributeModifiersEffect::remove(double value, unsigned id,
bool fullCheck)
{
/* We need to find and check this entry exists, and erase the entry
@@ -249,7 +249,7 @@ bool AttributeModifiersEffect::recalculateModifiedValue(double newPrevLayerValue
bool Attribute::add(unsigned short duration, double value,
- unsigned int layer, int level)
+ unsigned layer, int level)
{
assert(mMods.size() > layer);
LOG_DEBUG("Adding modifier to attribute with duration " << duration <<
@@ -277,7 +277,7 @@ bool Attribute::add(unsigned short duration, double value,
return false;
}
-bool Attribute::remove(double value, unsigned int layer,
+bool Attribute::remove(double value, unsigned layer,
int lvl, bool fullcheck)
{
assert(mMods.size() > layer);
@@ -321,7 +321,7 @@ Attribute::Attribute(const AttributeManager::AttributeInfo &info):
const std::vector<AttributeModifier> &modifiers = info.modifiers;
LOG_DEBUG("Construction of new attribute with '" << modifiers.size()
<< "' layers.");
- for (unsigned int i = 0; i < modifiers.size(); ++i)
+ for (unsigned i = 0; i < modifiers.size(); ++i)
{
LOG_DEBUG("Adding layer with stackable type "
<< modifiers[i].stackableType