1
0

Added CustomName to cMonster.

This commit is contained in:
Howaner
2014-09-01 20:12:56 +02:00
parent 022f5f141d
commit 7c4cb9a385
4 changed files with 64 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
// Protocol17x.cpp
/*
@@ -3021,6 +3022,15 @@ void cProtocol172::cPacketizer::WriteMobMetadata(const cMonster & a_Mob)
break;
}
} // switch (a_Mob.GetType())
// Custom name:
if (a_Mob.HasCustomName())
{
WriteByte(0x8a);
WriteString(a_Mob.GetCustomName());
WriteByte(0x0b);
WriteByte(a_Mob.IsCustomNameAlwaysVisible() ? 1 : 0);
}
}