mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
Merge pull request #2630 from akortunov/reputation
Cap reputation values
This commit is contained in:
commit
0a32850441
2 changed files with 3 additions and 1 deletions
|
@ -181,6 +181,7 @@
|
|||
Bug #5218: Crash when disabling ToggleBorders
|
||||
Bug #5220: GetLOS crashes when actor isn't loaded
|
||||
Bug #5222: Empty cell name subrecords are not saved
|
||||
Bug #5226: Reputation should be capped
|
||||
Feature #1774: Handle AvoidNode
|
||||
Feature #2229: Improve pathfinding AI
|
||||
Feature #3025: Analogue gamepad movement controls
|
||||
|
|
|
@ -370,7 +370,8 @@ int MWMechanics::NpcStats::getReputation() const
|
|||
|
||||
void MWMechanics::NpcStats::setReputation(int reputation)
|
||||
{
|
||||
mReputation = reputation;
|
||||
// Reputation is capped in original engine
|
||||
mReputation = std::min(255, std::max(0, reputation));
|
||||
}
|
||||
|
||||
int MWMechanics::NpcStats::getCrimeId() const
|
||||
|
|
Loading…
Reference in a new issue