EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Fix for mob heading in 0.5.5-DR1 (https://www.eqemulator.org/forums/showthread.php?t=12406)

Windcatcher 03-12-2004 11:07 AM

Fix for mob heading in 0.5.5-DR1
 
In zone/mob.cpp:

Code:

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.


All times are GMT -4. The time now is 03:36 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.