[odamex-bug-reporter] [Bug 762] p_unlag.cpp fails it when compiling with Visual C++ 2010 (tag 0.5.6)

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Fri, 09 Dec 2011 09:59:44 +0000

http://odamex.net/bugs/show_bug.cgi?id=762

xyltol@xxxxxxxxx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xyltol@xxxxxxxxx

--- Comment #3 from xyltol@xxxxxxxxx 2011-12-09 09:59:44 UTC ---
change that line to
if(abs((long) angle - (long) shooter->mo->angle) < 3 * FRACUNIT)

it happens because theres more then one for abs() and Visual Studio is more
picky; also if you look into the definition more DWORD is unsigned long, which
is why you'd use (long) on those.

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: