diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 4eb90483..c8dc55b5 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -243,8 +243,8 @@ void Monster::update() unsigned range = mSpecy->getStrollRange(); if (range) { - Point randomPos(rand() % (range * 2) - range + getPosition().x, - rand() % (range * 2) - range + getPosition().y); + Point randomPos(rand() % (range * 2 + 1) - range + getPosition().x, + rand() % (range * 2 + 1) - range + getPosition().y); setDestination(randomPos); mCountDown = 10 + rand() % 10; } |