Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2005, 03:07 PM
sirreality
Fire Beetle
 
Join Date: Feb 2005
Posts: 14
Default waypoints.cpp funtion CalculateHeadingToTarget

sint8 Mob::CalculateHeadingToTarget(float in_x, float in_y)

The possible values, from my testing, are [0 to 255] (inclusive). However, sint8 appears to only handle 8-bit ints, so [-128 to 127].

Most of the calls to this function are adjusting mob heading, which is a float and the problem i was seeing was that, as the mob crossed a South heading from West, 127 to 128, the value returned went from 127 to -128, which is incorrect.

Changing to sint16 corrected the problem as far as i can tell. It might also be possible to just change to uint16, since values are not negative, but i dunno if there is any gain in one vs. the other.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:17 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3