aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-01-14 20:09:19 +0100
committerXTZGZoReX <none@none>2010-01-14 20:09:19 +0100
commit6a21fbbc65dafa5cf22d8fd49810168bec7b8050 (patch)
treea2b7ed5a73893743f840d237c319b21f3dc4a627 /src/game/Level2.cpp
parent5fd047cd90be7490f9b5d4dfb116972eba7adc9e (diff)
* Tiny cosmetic fix for last two commits.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index c5be89e0cf2..1862676cbb1 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -3058,10 +3058,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
{
wpCreature->SetDisplayId(target->GetDisplayId());
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
- if(point > 100)
- wpCreature->SetLevel(100);
- else
- wpCreature->SetLevel(point);
+ wpCreature->SetLevel(point > MAX_LEVEL ? MAX_LEVEL : point);
}
}
while( result->NextRow() );