[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: Sat, 03 Dec 2011 19:39:12 +0000

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

Alexander Mayfield <alexmax2742@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.5.0 - 0.5.5               |0.5.6

--- Comment #1 from Alexander Mayfield <alexmax2742@xxxxxxxxx> 2011-12-03 
19:39:12 UTC ---
The line that it's bombing out on is line 608.

if (abs(angle - shooter->mo->angle) < 3 * FRACUNIT)

I'm not quite sure how to fix it, because I'm not really sure what the original
intention was.  An angle_t is a DWORD, which is defined as an unsigned long in
doomtype.h for windows platforms and an unsigned int everyplace else.

1. What's the use of taking the absolute value of a value that can't be
negative?
2. Why does odamex define DWORD in the first place?  It's supposed to be
declared by the Win32 API (WinDef.h).

-- 
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: