Skip to content

Commit

Permalink
[11347] More accurate calculation of next movement update time in Ran…
Browse files Browse the repository at this point in the history
…domMovementGenerator::_setRandomLocation()

Signed-off-by: Ambal <pogrebniak@gala.net>
  • Loading branch information
Ambal committed Apr 13, 2011
1 parent d2934bb commit e5e06cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/RandomMovementGenerator.cpp
Expand Up @@ -105,7 +105,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
//else if (is_water_ok) // Swimming mode to be done with more than this check
else
{
i_nextMoveTime.Reset(urand(500+i_destinationHolder.GetTotalTravelTime(), 10000+i_destinationHolder.GetTotalTravelTime()));
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime() + urand(500, 10000));
creature.AddSplineFlag(SPLINEFLAG_WALKMODE);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11346"
#define REVISION_NR "11347"
#endif // __REVISION_NR_H__

0 comments on commit e5e06cf

Please sign in to comment.