mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 05:45:33 +00:00
[General] Add hasRace to record overrides in RecordsDynamic packet
This commit is contained in:
parent
ddb25a482d
commit
b3747839c0
4 changed files with 5 additions and 1 deletions
|
@ -1188,6 +1188,8 @@ void RecordsDynamicFunctions::SetRecordRace(const char* race) noexcept
|
||||||
tempNpc.data.mRace = race;
|
tempNpc.data.mRace = race;
|
||||||
else
|
else
|
||||||
LOG_MESSAGE_SIMPLE(TimedLog::LOG_ERROR, "Tried to set race for record type %i which lacks that property", writeRecordsType);
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_ERROR, "Tried to set race for record type %i which lacks that property", writeRecordsType);
|
||||||
|
|
||||||
|
tempOverrides.hasRace = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RecordsDynamicFunctions::SetRecordClass(const char* charClass) noexcept
|
void RecordsDynamicFunctions::SetRecordClass(const char* charClass) noexcept
|
||||||
|
|
|
@ -939,7 +939,7 @@ void RecordHelper::overrideRecord(const mwmp::NpcRecord& record)
|
||||||
else
|
else
|
||||||
finalData.setIsMale(baseData->isMale());
|
finalData.setIsMale(baseData->isMale());
|
||||||
|
|
||||||
if (!record.data.mRace.empty())
|
if (record.baseOverrides.hasRace)
|
||||||
finalData.mRace = recordData.mRace;
|
finalData.mRace = recordData.mRace;
|
||||||
|
|
||||||
if (record.baseOverrides.hasModel)
|
if (record.baseOverrides.hasModel)
|
||||||
|
|
|
@ -113,6 +113,7 @@ namespace mwmp
|
||||||
bool hasHair = false;
|
bool hasHair = false;
|
||||||
bool hasHead = false;
|
bool hasHead = false;
|
||||||
bool hasGender = false;
|
bool hasGender = false;
|
||||||
|
bool hasRace = false;
|
||||||
bool hasFaction = false;
|
bool hasFaction = false;
|
||||||
|
|
||||||
bool hasScale = false;
|
bool hasScale = false;
|
||||||
|
|
|
@ -296,6 +296,7 @@ void PacketRecordDynamic::Packet(RakNet::BitStream *bs, bool send)
|
||||||
RW(overrides.hasGender, send);
|
RW(overrides.hasGender, send);
|
||||||
RW(overrides.hasFlags, send);
|
RW(overrides.hasFlags, send);
|
||||||
RW(overrides.hasModel, send);
|
RW(overrides.hasModel, send);
|
||||||
|
RW(overrides.hasRace, send);
|
||||||
RW(overrides.hasHair, send);
|
RW(overrides.hasHair, send);
|
||||||
RW(overrides.hasHead, send);
|
RW(overrides.hasHead, send);
|
||||||
RW(overrides.hasFaction, send);
|
RW(overrides.hasFaction, send);
|
||||||
|
|
Loading…
Reference in a new issue