mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 16:09:45 +00:00
Remove code setting PcRace (Fixes #2886)
This is already handled by the RaceCheck script.
This commit is contained in:
parent
e76401d5ea
commit
b509a18065
1 changed files with 0 additions and 14 deletions
|
@ -216,7 +216,6 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
// set new game mark
|
// set new game mark
|
||||||
mGlobalVariables["chargenstate"].setInteger (1);
|
mGlobalVariables["chargenstate"].setInteger (1);
|
||||||
mGlobalVariables["pcrace"].setInteger (3);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mGlobalVariables["chargenstate"].setInteger (-1);
|
mGlobalVariables["chargenstate"].setInteger (-1);
|
||||||
|
@ -1493,19 +1492,6 @@ namespace MWWorld
|
||||||
|
|
||||||
if (Misc::StringUtils::ciEqual(record.mId, "player"))
|
if (Misc::StringUtils::ciEqual(record.mId, "player"))
|
||||||
{
|
{
|
||||||
std::vector<std::string> ids;
|
|
||||||
getStore().get<ESM::Race>().listIdentifier(ids);
|
|
||||||
|
|
||||||
std::sort(ids.begin(), ids.end());
|
|
||||||
|
|
||||||
unsigned int i=0;
|
|
||||||
|
|
||||||
for (; i<ids.size(); ++i)
|
|
||||||
if (Misc::StringUtils::ciEqual (ids[i], record.mRace))
|
|
||||||
break;
|
|
||||||
|
|
||||||
mGlobalVariables["pcrace"].setInteger (i == ids.size() ? 0 : i+1);
|
|
||||||
|
|
||||||
const ESM::NPC *player =
|
const ESM::NPC *player =
|
||||||
mPlayer->getPlayer().get<ESM::NPC>()->mBase;
|
mPlayer->getPlayer().get<ESM::NPC>()->mBase;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue