mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 05:02:20 +00:00
Add prelim support for CharacterGuid to spawn struct.
This commit is contained in:
1 parent
c20439dbb4
commit
200b7fa604
2 files changed
+16
-7
No files matched your search
@@ -1275,6 +1275,14 @@ void Mob::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho)
|
||||
strcpy(ns->spawn.name, name);
|
||||
if(IsClient()) {
|
||||
strn0cpy(ns->spawn.lastName, lastname, sizeof(ns->spawn.lastName));
|
||||
ns->spawn.CharacterGuid.Id = CastToClient()->CharacterID();
|
||||
ns->spawn.CharacterGuid.WorldId = RuleI(World, Id);
|
||||
ns->spawn.CharacterGuid.Reserved = 0;
|
||||
}
|
||||
else {
|
||||
ns->spawn.CharacterGuid.Id = 0;
|
||||
ns->spawn.CharacterGuid.WorldId = 0;
|
||||
ns->spawn.CharacterGuid.Reserved = 0;
|
||||
}
|
||||
|
||||
ns->spawn.heading = FloatToEQ12(m_Position.w);
|
||||
|
||||
Reference in new issue
Block a user