aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2010-01-14 15:39:11 -0700
committerBrian <runningnak3d@gmail.com>2010-01-14 15:39:11 -0700
commit5fd047cd90be7490f9b5d4dfb116972eba7adc9e (patch)
treef9aa8f205a05839a6c3246deaa56069d3315ce29
parent1fcafbc938fda93c721e2bc268f290c3aa964dde (diff)
* Added sanity check for > 100 waypoints since levels > 100 aren't supported
* Author Kaelima --HG-- branch : trunk
-rw-r--r--src/game/Level2.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index 28179568a28..c5be89e0cf2 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -3058,7 +3058,10 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
{
wpCreature->SetDisplayId(target->GetDisplayId());
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
- wpCreature->SetLevel(point);
+ if(point > 100)
+ wpCreature->SetLevel(100);
+ else
+ wpCreature->SetLevel(point);
}
}
while( result->NextRow() );