Kp
5bafa16e7f
Fix level load hang on >=mingw32-gcc-4.7
...
Starting in gcc 4.7 "Windows mingw targets are using the -mms-bitfields
option by default." <http://gcc.gnu.org/gcc-4.7/changes.html >. This
causes __attribute__((packed)) not to be effective on structures that
are used to express the layout of on-disk data. In turn, that causes
piggy.c to mishandle texture loads, eventually resulting in an infinite
loop. Add a pragma pack to force the headers to pack tightly on
Windows.
2013-08-25 17:16:41 +00:00
Kp
af52e78a50
Move similar/arch/ogl/ogl.c -> similar/arch/ogl/ogl.cpp
2013-08-24 17:10:35 +00:00
Kp
828ced10a5
Declare newdemo_count_demos for D2 menu system
2013-08-24 16:44:30 +00:00
Kp
afcbfe8e54
Rename d1x/d2x variables to unify names between D1X and D2X
2013-08-24 16:44:30 +00:00
Kp
d909692148
Allow compiler to unroll pow2ize
2013-08-24 16:44:23 +00:00
Kp
20cf3f4cdb
Mark various OGL functions static
2013-08-24 16:44:23 +00:00
Kp
8ef8371563
Use unsigned screen width/height
2013-08-24 16:44:23 +00:00
Kp
8d13642c9f
Hide GM_CAPTURE tests behind static inline
2013-08-11 20:46:52 +00:00
Kp
0c3adc48df
Hide GM_HOARD tests behind static inline
2013-08-11 20:46:52 +00:00
Kp
3226a57848
Remove unused MULTI_ACTIVE_DOOR
2013-08-11 20:43:08 +00:00
Kp
de6422d58f
Remove unused multi_send_audio_taunt
2013-08-11 20:43:08 +00:00
Kp
afd2f5aea1
Remove unused GET/PUT_INTEL_INT64
2013-08-11 20:40:24 +00:00
Kp
4e6142d779
Move similar/arch/ogl/gr.c -> similar/arch/ogl/gr.cpp
2013-08-10 03:56:14 +00:00
Kp
e750c90b00
Mark more math as const correct
2013-08-10 03:55:50 +00:00
Kp
33aa8937d9
Merge branch d1x-rebirth/master into unification/master
...
Conflicts:
SConstruct
common/main/multi.h
similar/main/gamerend.c
2013-08-09 22:49:04 +00:00
zico
27a4a62b19
To compensate the change between D2's to D1's tracking code base, increased HOMING_MAX_TRACKABLE_DOT, making homing projectiles track a bit more agressivly than D1 to pose more of a challenge while not making them useless when having Afterburner
2013-08-09 17:50:11 +02:00
zico
830bcd7845
merge with ccea6b3547
2013-08-09 17:25:42 +02:00
zico
a527348681
Added MULTI_FIRE_BOMB as alteration of MULTI_FIRE to keep bombs mapped in a Multiplayer match for later Host authority and to make their chaff ability work correctly. Additionally added MULTI_FIRE_TRACK to only send Network_laser_track if > -1. On the way I made laser.c a bit more similar between D1X and D2X
2013-08-09 17:21:03 +02:00
Kp
319b3ec5fd
Mark more math as const correct
2013-08-09 03:04:18 +00:00
Kp
9ba729ca3a
Print function and line when calling Error
2013-08-09 02:10:51 +00:00
Kp
2cd7748e93
Convert vsprintf to vsnprintf
2013-08-09 01:58:17 +00:00
Kp
a01dbc59d6
Make ui_messagebox_n static
2013-08-09 01:56:34 +00:00
zico
40c5f10e20
Added definition of DESIGNATED_GAME_FPS as 30 and DESIGNATED_GAME_FRAMETIME based on the former. We use those for d_tick_count intervals and to scale other parts that have never been properly aligned to FrameTime before. In that regard, Release builds will take DESIGNATED_GAME_FPS as MINIMUM_FPS for -maxfps argument
2013-08-08 22:07:29 +02:00
Kp
a881ee455e
Remove fix.h
2013-08-08 03:01:48 +00:00
Kp
5ec78f320b
Always use 64-bit math in vm_vec_dot3
2013-08-08 03:01:48 +00:00
Kp
4c87504b91
Always use 64-bit math in vm_vec_dotprod
2013-08-08 03:01:48 +00:00
Kp
6b48994596
Avoid unnecessary lookups in fix_sincos
2013-08-08 03:01:47 +00:00
Kp
400b18b78a
Mark gauges variables const
2013-08-08 03:01:47 +00:00
zico
bbaa3c21f3
HAMERS! Wait 33ms between each turn of a homing missile projectile, only scale turns if FPS are below 30
2013-08-08 00:29:56 +02:00
Kp
528d2e3ee7
Mark must_clip_tmap_face static
2013-08-07 03:04:11 +00:00
Kp
2c8aa517bc
Mark must_clip_flat_face static
2013-08-07 03:03:55 +00:00
Kp
c02a249263
Make gr_bitmap_scale_to static
2013-08-07 02:42:25 +00:00
Kp
b81100d54d
Make OGL_VIEWPORT static inline
2013-08-07 02:39:43 +00:00
Kp
68d3b08ef9
Remove unused function gr_rle_expand_scanline_generic_masked
2013-08-07 02:33:18 +00:00
zico
2b632008b2
Cleaned code for homing projectiles a bit and reverted to state of Descent 1 source release; Added ticks to rule target aquisition and adjusted turn rate scaling accordingly
2013-08-06 21:04:44 +02:00
Kp
7983086b40
Move common/editor/func.c -> common/editor/func.cpp
2013-08-04 18:02:42 +00:00
Kp
c0c396b4fd
Move common/ui/userbox.c -> common/ui/userbox.cpp
2013-08-04 18:02:28 +00:00
Kp
227da67a8d
Move common/ui/uidraw.c -> common/ui/uidraw.cpp
2013-08-04 18:02:14 +00:00
Kp
1741f7ec57
Move common/ui/ui.c -> common/ui/ui.cpp
2013-08-04 18:01:59 +00:00
Kp
c6c82f44ba
Move common/ui/scroll.c -> common/ui/scroll.cpp
2013-08-04 18:01:45 +00:00
Kp
0a9e1a6e9a
Move common/ui/radio.c -> common/ui/radio.cpp
2013-08-04 18:01:31 +00:00
Kp
5c32819c39
Move common/ui/popup.c -> common/ui/popup.cpp
2013-08-04 18:01:17 +00:00
Kp
0b36b406d9
Move common/ui/message.c -> common/ui/message.cpp
2013-08-04 18:01:03 +00:00
Kp
3f696829fb
Move common/ui/menubar.c -> common/ui/menubar.cpp
2013-08-04 18:00:48 +00:00
Kp
fca8ac2012
Move common/ui/menu.c -> common/ui/menu.cpp
2013-08-04 18:00:34 +00:00
Kp
a9652f1b9b
Move common/ui/listbox.c -> common/ui/listbox.cpp
2013-08-04 18:00:20 +00:00
Kp
bf0498ab52
Move common/ui/keytrap.c -> common/ui/keytrap.cpp
2013-08-04 18:00:06 +00:00
Kp
11cb41d024
Move common/ui/keypress.c -> common/ui/keypress.cpp
2013-08-04 17:59:52 +00:00
Kp
1fdc080c17
Move common/ui/keypad.c -> common/ui/keypad.cpp
2013-08-04 17:59:37 +00:00
Kp
c2b11da77d
Move common/ui/inputbox.c -> common/ui/inputbox.cpp
2013-08-04 17:59:23 +00:00
Kp
a9a464ba65
Move common/ui/icon.c -> common/ui/icon.cpp
2013-08-04 17:59:09 +00:00
Kp
d66063497b
Move common/ui/gadget.c -> common/ui/gadget.cpp
2013-08-04 17:58:55 +00:00
Kp
80b86f3f0d
Move common/ui/file.c -> common/ui/file.cpp
2013-08-04 17:58:40 +00:00
Kp
ad2d064410
Move common/ui/dialog.c -> common/ui/dialog.cpp
2013-08-04 17:58:26 +00:00
Kp
66874d419e
Move common/ui/checkbox.c -> common/ui/checkbox.cpp
2013-08-04 17:58:12 +00:00
Kp
000774f49d
Move common/ui/button.c -> common/ui/button.cpp
2013-08-04 17:57:20 +00:00
Kp
17d9dd4f1e
Move common/texmap/tmapflat.c -> common/texmap/tmapflat.cpp
2013-08-04 17:57:06 +00:00
Kp
3c2b518d0d
Move common/texmap/scanline.c -> common/texmap/scanline.cpp
2013-08-04 17:56:51 +00:00
Kp
33725eb510
Move common/texmap/ntmap.c -> common/texmap/ntmap.cpp
2013-08-04 17:56:36 +00:00
Kp
7412f0bfc1
Move common/misc/strutil.c -> common/misc/strutil.cpp
2013-08-04 17:56:21 +00:00
Kp
90b8cdbb1a
Move common/misc/strio.c -> common/misc/strio.cpp
2013-08-04 17:56:05 +00:00
Kp
3e950a6b42
Move common/misc/ignorecase.c -> common/misc/ignorecase.cpp
2013-08-04 17:55:04 +00:00
Kp
f8cb11d714
Move common/misc/hmp.c -> common/misc/hmp.cpp
2013-08-04 17:55:00 +00:00
Kp
48c1b7a321
Fix const mismatch in digi_win32_play_midi_song
2013-08-03 20:32:48 +00:00
Kp
4a67e8332a
Always initialize fullscreen in display_win32_alert
2013-08-03 19:59:09 +00:00
Kp
3ac8fdc032
Move common/misc/error.c -> common/misc/error.cpp
2013-08-03 17:45:23 +00:00
Kp
2932582a2e
Move common/maths/vecmat.c -> common/maths/vecmat.cpp
2013-08-03 17:45:23 +00:00
Kp
34f5ee1575
Move common/maths/tables.c -> common/maths/tables.cpp
2013-08-03 17:45:23 +00:00
Kp
1ef771136b
Move common/maths/rand.c -> common/maths/rand.cpp
2013-08-03 17:45:23 +00:00
Kp
bae5ce9a66
Move common/maths/fixc.c -> common/maths/fixc.cpp
2013-08-03 17:45:23 +00:00
Kp
09b1f8fab7
Move common/arch/sdl/window.c -> common/arch/sdl/window.cpp
2013-08-03 17:45:23 +00:00
Kp
97bea01c80
Move common/arch/sdl/rbaudio.c -> common/arch/sdl/rbaudio.cpp
2013-08-03 17:45:22 +00:00
Kp
9daacbdf81
Move common/arch/sdl/joy.c -> common/arch/sdl/joy.cpp
2013-08-03 17:45:22 +00:00
Kp
d97e7b468b
Move common/3d/setup.c -> common/3d/setup.cpp
2013-08-03 17:45:22 +00:00
Kp
040216910f
Move common/3d/rod.c -> common/3d/rod.cpp
2013-08-03 17:45:22 +00:00
Kp
fe9f99ead8
Move common/3d/points.c -> common/3d/points.cpp
2013-08-03 17:45:22 +00:00
Kp
eaf449e144
Move common/3d/matrix.c -> common/3d/matrix.cpp
2013-08-03 17:45:22 +00:00
Kp
03832a8752
Move common/3d/instance.c -> common/3d/instance.cpp
2013-08-03 17:45:22 +00:00
Kp
1274540315
Move common/3d/globvars.c -> common/3d/globvars.cpp
2013-08-03 17:45:22 +00:00
Kp
eb65b73b2a
Move common/3d/draw.c -> common/3d/draw.cpp
2013-08-03 17:45:22 +00:00
Kp
3c5c8a8068
Make arg processing static
2013-08-03 17:45:22 +00:00
Kp
69535df7fd
Compile out memory checker if not enabled
2013-07-28 23:20:33 +00:00
Kp
e961be1c14
u_mem: split memory debugging from NDEBUG
2013-07-28 23:18:44 +00:00
Kp
adfbb4129d
Move common/3d/clipper.c -> common/3d/clipper.cpp
2013-07-27 22:30:54 +00:00
Kp
1259006db5
Move common/2d/scalec.c -> common/2d/scalec.cpp
2013-07-27 22:30:54 +00:00
Kp
18a42e3e40
Move common/2d/rle.c -> common/2d/rle.cpp
2013-07-27 22:30:54 +00:00
Kp
a334ad0ab1
Move common/2d/rect.c -> common/2d/rect.cpp
2013-07-27 22:30:54 +00:00
Kp
63acd159cc
Move common/2d/pixel.c -> common/2d/pixel.cpp
2013-07-27 22:30:54 +00:00
Kp
c80a824136
Move common/2d/line.c -> common/2d/line.cpp
2013-07-27 22:30:54 +00:00
Kp
5832f0dbd9
Move common/2d/gpixel.c -> common/2d/gpixel.cpp
2013-07-27 22:30:54 +00:00
Kp
139a80b925
Move common/2d/disc.c -> common/2d/disc.cpp
2013-07-27 22:30:54 +00:00
Kp
46d02518bc
Move common/2d/circle.c -> common/2d/circle.cpp
2013-07-27 22:30:54 +00:00
Kp
b7abe1d77e
Move common/2d/canvas.c -> common/2d/canvas.cpp
2013-07-27 22:30:54 +00:00
Kp
6169fc5abc
Move common/2d/box.c -> common/2d/box.cpp
2013-07-27 22:30:54 +00:00
Kp
f7a030483f
Move common/2d/bitmap.c -> common/2d/bitmap.cpp
2013-07-27 22:30:53 +00:00
Kp
c2895e5176
Move common/2d/bitblt.c -> common/2d/bitblt.cpp
2013-07-27 22:30:53 +00:00
Kp
ff90315978
Use SConscript configure support to probe for format(printf) attribute
2013-07-27 22:17:13 +00:00
Kp
74bcb86cf4
Remove some const modifiers that broke SDL-only build
2013-07-27 21:29:01 +00:00
Kp
2f4ffebde6
Add const markers to some texture mapping code
2013-07-27 21:28:53 +00:00
Kp
2215c0848d
Use SConscript configure support to probe for format_arg attribute
2013-07-26 02:54:33 +00:00