PDA

View Full Version : Fix for mob heading in 0.5.5-DR1


Windcatcher
03-12-2004, 11:07 AM
In zone/mob.cpp:

void Mob::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho) {
strcpy(ns->spawn.name, name);
if(IsClient())
strncpy(ns->spawn.last_name,lastname,32);
ns->spawn.heading = FloatToEQ19(heading);//heading;

Note the change to the last line. Heading should be transmitted in fixed-point form (this is the same fix that I had to make to 0.5.3-DR3).

WC

sandy
04-02-2004, 09:07 AM
do we have to change the heading in our database if have the monsters with good heading before this fix ?

killspree
04-02-2004, 11:19 AM
No, that fixes heading for old spawns too.