------------------------------------------------------------------------ r2992 | helixhorned | 2012-09-02 07:13:06 -0700 (Sun, 02 Sep 2012) | 1 line compat.h: tweak indentation of some preprocessing directives. ------------------------------------------------------------------------ r2991 | helixhorned | 2012-09-02 07:12:01 -0700 (Sun, 02 Sep 2012) | 4 lines Make getangle() a __fastcall function instead of static inline. This trims four 4k pages of code from the release EDuke32 build and one page from Mapster32. ------------------------------------------------------------------------ r2990 | helixhorned | 2012-09-02 07:10:55 -0700 (Sun, 02 Sep 2012) | 4 lines In dosetaspect(), bail out calculating radarang2[] instead of failing assertion. When this happens, parallaxmodes other than 0 will be unavailable and silently draw as parallaxmode 0. This usually happens with extremely wide resolutions. ------------------------------------------------------------------------ r2989 | helixhorned | 2012-09-02 07:09:49 -0700 (Sun, 02 Sep 2012) | 1 line Add lunatic/test/tables.lua, which was used to compare the calc'd sin/atan values. ------------------------------------------------------------------------ r2988 | helixhorned | 2012-09-02 07:08:43 -0700 (Sun, 02 Sep 2012) | 7 lines Calculate sine and arctan tables, getting rid of TABLES.DAT dependency. We're pulling stuff from math.h even in non-GL builds right now, so adding libc's sin() and atan() doesn't seem like a big deal. In the unlikely event that their accuracy is so bad that the calculated tables don't match the original ones, a warning is issued on little-endian platforms. ------------------------------------------------------------------------ r2987 | helixhorned | 2012-09-02 07:07:36 -0700 (Sun, 02 Sep 2012) | 1 line Move #define PI from to build.h, add bound-checking assertion in dosetaspect(). ------------------------------------------------------------------------ r2986 | helixhorned | 2012-09-02 07:06:30 -0700 (Sun, 02 Sep 2012) | 1 line Some [U]INT_MAX --> [U]INT32_MAX. ------------------------------------------------------------------------ r2985 | helixhorned | 2012-09-02 07:05:23 -0700 (Sun, 02 Sep 2012) | 1 line Move #include from polymer.h to polymer.c. ------------------------------------------------------------------------ r2984 | helixhorned | 2012-09-02 07:04:16 -0700 (Sun, 02 Sep 2012) | 1 line Clean up A_FindPlayer(), constify some function args, some 0x7fffffff->INT32_MAX ------------------------------------------------------------------------ r2983 | helixhorned | 2012-09-02 07:03:10 -0700 (Sun, 02 Sep 2012) | 4 lines player.c: factor out 7x similar code into GetAutoAimAngle(). This is one of the cases where the duplicated code has minor modifications at each site. These are handled by function args here. ------------------------------------------------------------------------ r2982 | helixhorned | 2012-09-02 07:02:04 -0700 (Sun, 02 Sep 2012) | 1 line Remove commented out AI Duke opponent code. ------------------------------------------------------------------------ r2981 | helixhorned | 2012-09-02 07:00:58 -0700 (Sun, 02 Sep 2012) | 10 lines Remove some #if 0 blocks that are probably of no interest any more. For reference, they are the following: - cache1d.c: suckcache() - build.c: compare_wall_coords() - make switch-invisible heuristic - Mapster32: old sprite search - Mapster32: manual z range - m32script: read/writearray, qgetsysstr - menus.c: savetemp() ------------------------------------------------------------------------