1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 12:49:40 +00:00

corrected a bug about rank.

This commit is contained in:
gugus 2012-04-12 17:29:05 +02:00
parent 03d6d1fb82
commit 7edc5c733c
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -307,7 +307,7 @@ namespace MWScript
MWWorld::Ptr player = context.getEnvironment().mWorld->getPlayer().getPlayer(); 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()) 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 else
{ {
@ -340,7 +340,7 @@ namespace MWScript
MWWorld::Ptr player = context.getEnvironment().mWorld->getPlayer().getPlayer(); 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()) 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 else
{ {