corrected a bug about rank.

pull/21/head
gugus 13 years ago
parent 03d6d1fb82
commit 7edc5c733c

@ -488,7 +488,7 @@ namespace MWDialogue
if(it!=stats.mFactionRank.end())
{
//check rank
if(it->second < info.data.rank) return false;
if(it->second < (int)info.data.rank) return false;
}
else
{
@ -505,7 +505,7 @@ namespace MWDialogue
if(it!=stats.mFactionRank.end())
{
//check rank
if(it->second < info.data.rank) return false;
if(it->second < (int)info.data.PCrank) return false;
}
else
{

@ -307,7 +307,7 @@ namespace MWScript
MWWorld::Ptr player = context.getEnvironment().mWorld->getPlayer().getPlayer();
if(MWWorld::Class::get(player).getNpcStats(player).mFactionRank.find(factionID) == MWWorld::Class::get(player).getNpcStats(player).mFactionRank.end())
{
MWWorld::Class::get(player).getNpcStats(player).mFactionRank[factionID] = 1;
MWWorld::Class::get(player).getNpcStats(player).mFactionRank[factionID] = 0;
}
else
{
@ -340,7 +340,7 @@ namespace MWScript
MWWorld::Ptr player = context.getEnvironment().mWorld->getPlayer().getPlayer();
if(MWWorld::Class::get(player).getNpcStats(player).mFactionRank.find(factionID) == MWWorld::Class::get(player).getNpcStats(player).mFactionRank.end())
{
MWWorld::Class::get(player).getNpcStats(player).mFactionRank[factionID] = 1;
MWWorld::Class::get(player).getNpcStats(player).mFactionRank[factionID] = 0;
}
else
{

Loading…
Cancel
Save