mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Merge pull request #1765 from akortunov/wanderfix
Fix arguments parsing for AiWander console command
This commit is contained in:
commit
88bf74b2a3
2 changed files with 10 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
Bug #4453: Quick keys behaviour is invalid for equipment
|
Bug #4453: Quick keys behaviour is invalid for equipment
|
||||||
Bug #4454: AI opens doors too slow
|
Bug #4454: AI opens doors too slow
|
||||||
Bug #4457: Item without CanCarry flag prevents shield autoequipping in dark areas
|
Bug #4457: Item without CanCarry flag prevents shield autoequipping in dark areas
|
||||||
|
Bug #4458: AiWander console command handles idle chances incorrectly
|
||||||
Feature #4256: Implement ToggleBorders (TB) console command
|
Feature #4256: Implement ToggleBorders (TB) console command
|
||||||
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
||||||
Feature #4222: 360° screenshots
|
Feature #4222: 360° screenshots
|
||||||
|
|
|
@ -193,10 +193,18 @@ namespace MWScript
|
||||||
Interpreter::Type_Integer time = static_cast<Interpreter::Type_Integer>(runtime[0].mFloat);
|
Interpreter::Type_Integer time = static_cast<Interpreter::Type_Integer>(runtime[0].mFloat);
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
|
// Chance for Idle is unused
|
||||||
|
if (arg0)
|
||||||
|
{
|
||||||
|
--arg0;
|
||||||
|
runtime.pop();
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<unsigned char> idleList;
|
std::vector<unsigned char> idleList;
|
||||||
bool repeat = false;
|
bool repeat = false;
|
||||||
|
|
||||||
for(int i=1; i < 10 && arg0; ++i)
|
// Chances for Idle2-Idle9
|
||||||
|
for(int i=2; i<=9 && arg0; ++i)
|
||||||
{
|
{
|
||||||
if(!repeat)
|
if(!repeat)
|
||||||
repeat = true;
|
repeat = true;
|
||||||
|
|
Loading…
Reference in a new issue