mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 19:11:33 +00:00
same fix for a couple of additional instructions
This commit is contained in:
parent
7de49a66e2
commit
80d39780ae
1 changed files with 16 additions and 12 deletions
|
@ -563,11 +563,12 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr actor = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionID = "";
|
std::string factionID = "";
|
||||||
|
|
||||||
if(arg0==0)
|
if(arg0==0)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr actor = R()(runtime);
|
|
||||||
factionID = getDialogueActorFaction(actor);
|
factionID = getDialogueActorFaction(actor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -603,11 +604,12 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr actor = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionID = "";
|
std::string factionID = "";
|
||||||
|
|
||||||
if(arg0==0)
|
if(arg0==0)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr actor = R()(runtime);
|
|
||||||
factionID = getDialogueActorFaction(actor);
|
factionID = getDialogueActorFaction(actor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -751,6 +753,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionId;
|
std::string factionId;
|
||||||
|
|
||||||
if (arg0==1)
|
if (arg0==1)
|
||||||
|
@ -760,8 +764,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
|
|
||||||
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
||||||
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
||||||
}
|
}
|
||||||
|
@ -784,6 +786,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
Interpreter::Type_Integer value = runtime[0].mInteger;
|
Interpreter::Type_Integer value = runtime[0].mInteger;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
|
@ -796,8 +800,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
|
|
||||||
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
||||||
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
||||||
}
|
}
|
||||||
|
@ -819,6 +821,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
Interpreter::Type_Integer value = runtime[0].mInteger;
|
Interpreter::Type_Integer value = runtime[0].mInteger;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
|
@ -831,8 +835,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
|
|
||||||
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
if (!ptr.getClass().getNpcStats (ptr).getFactionRanks().empty())
|
||||||
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
factionId = ptr.getClass().getNpcStats (ptr).getFactionRanks().begin()->first;
|
||||||
}
|
}
|
||||||
|
@ -914,6 +916,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionID = "";
|
std::string factionID = "";
|
||||||
if(arg0 >0 )
|
if(arg0 >0 )
|
||||||
{
|
{
|
||||||
|
@ -922,8 +926,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
|
|
||||||
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
||||||
{
|
{
|
||||||
factionID = "";
|
factionID = "";
|
||||||
|
@ -953,6 +955,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionID = "";
|
std::string factionID = "";
|
||||||
if(arg0 >0 )
|
if(arg0 >0 )
|
||||||
{
|
{
|
||||||
|
@ -961,7 +965,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
||||||
{
|
{
|
||||||
factionID = "";
|
factionID = "";
|
||||||
|
@ -986,6 +989,8 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr ptr = R()(runtime, false);
|
||||||
|
|
||||||
std::string factionID = "";
|
std::string factionID = "";
|
||||||
if(arg0 >0 )
|
if(arg0 >0 )
|
||||||
{
|
{
|
||||||
|
@ -994,7 +999,6 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr = R()(runtime);
|
|
||||||
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
||||||
{
|
{
|
||||||
factionID = "";
|
factionID = "";
|
||||||
|
|
Loading…
Reference in a new issue