1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 19:29:56 +00:00

fixed AiTravel and changed GetAiPackageDone to return 0 (returning one would interfere with character creation testing at this point)

This commit is contained in:
Marc Zinnschlag 2010-08-22 15:16:11 +02:00
parent 68a788b2c8
commit f3bf46f1a9

View file

@ -10,6 +10,7 @@
#include "interpretercontext.hpp" #include "interpretercontext.hpp"
#include <iostream> #include <iostream>
namespace MWScript namespace MWScript
{ {
namespace Ai namespace Ai
@ -156,7 +157,7 @@ namespace MWScript
MWWorld::Ptr ptr = context.getReference(); MWWorld::Ptr ptr = context.getReference();
Interpreter::Type_Integer value = 1; Interpreter::Type_Integer value = 0;
runtime.push (value); runtime.push (value);
} }
@ -176,7 +177,7 @@ namespace MWScript
MWWorld::Ptr ptr = context.getWorld().getPtr (id, false); MWWorld::Ptr ptr = context.getWorld().getPtr (id, false);
Interpreter::Type_Integer value = 1; Interpreter::Type_Integer value = 0;
runtime.push (value); runtime.push (value);
} }
@ -192,7 +193,7 @@ namespace MWScript
void registerExtensions (Compiler::Extensions& extensions) void registerExtensions (Compiler::Extensions& extensions)
{ {
extensions.registerInstruction ("aitravel", "cllll/l", opcodeAiTravel, extensions.registerInstruction ("aitravel", "lll/l", opcodeAiTravel,
opcodeAiTravelExplicit); opcodeAiTravelExplicit);
extensions.registerInstruction ("aiescort", "cllll/l", opcodeAiEscort, extensions.registerInstruction ("aiescort", "cllll/l", opcodeAiEscort,
opcodeAiEscortExplicit); opcodeAiEscortExplicit);