Kp
77c0b58591
Fix editor crash introduced in 47c00c712
...
glow_values may be NULL, so check before dereferencing it.
2013-12-17 03:48:31 +00:00
Kp
279f123f56
Simplify FADE_FLATPOLY logic
2013-12-17 03:46:35 +00:00
zico
47c00c7128
Added code which draws activated headlights or their absence to g3_draw_polygon_model. This was never implemented in D2X - probably because most of interp.c was adopted from D1X.
2013-12-16 08:37:51 +01:00
zico
45a39d7587
Fixed usage of nm_messagebox_str in net_udp_process_dump
2013-12-16 06:23:06 +01:00
zico
340af42d86
Due to increased calls of multi_do_frame introduced in 6bd9c2bfc1
net_udp_start_poll needed to be modified to see if a player joined or left; Also constantly refill the list in case players change but their numbers don't (i.e. one leaves and one joins at the same time)
2013-12-16 06:13:44 +01:00
Kp
d1fa9ff7a6
Simplify setup for ui_messagebox_n
2013-12-15 21:54:59 +00:00
Kp
92e8cb7a31
Add type checking to newmenu subfunction userdata
2013-12-15 21:54:38 +00:00
Kp
3908215e73
Add type checking to nm_messagebox format string
2013-12-15 21:54:17 +00:00
Kp
b7fda7ee15
Fix nm_messagebox usage to avoid redundant format string parse
2013-12-15 21:53:40 +00:00
Kp
b30639b0c4
Add special case to save CPPDEFINES to configure header
...
Avoid cluttering the command line by moving CPPDEFINES to the configure
header.
2013-12-15 21:53:20 +00:00
Kp
5d306d06be
Switch endlevel message dialog not to use nm_messagebox1
2013-12-15 19:00:59 +00:00
Kp
55f67c72d1
Switch MP abort-game menu not to use nm_messagebox1
2013-12-15 18:59:25 +00:00
Kp
adee72c624
Move -pthread to be Linux only
2013-12-15 18:59:01 +00:00
Kp
8f9015acd2
Switch manual join menu not to use nm_messagebox1
...
Fixes a remotely triggerable crash caused by parsing game names as a
format string.
2013-12-15 18:58:02 +00:00
Kp
3fb0ffa19b
Add typedef for newmenu subfunction
2013-12-15 18:57:54 +00:00
Kp
cea46651fc
Check type of window handler function
2013-12-15 18:51:26 +00:00
Kp
dc36ee3ab3
Store kconfig labels separately
2013-12-15 18:51:23 +00:00
Kp
f05b6f0008
Use on-stack bit array for tracking AI segment visits
2013-12-15 18:50:39 +00:00
Kp
2eb1128a76
Move Automap_full_depth into struct automap
...
It is only used when the map is open.
2013-12-15 18:46:42 +00:00
Kp
f351cc024d
Add convenience alias 'dxx' to SConstruct
2013-12-15 18:46:42 +00:00
Kp
7088720507
Use C++ array for Automap_visited
2013-12-15 18:46:42 +00:00
zico
804ed35d26
Slightly different but better handling for segment depth in Automap when having full map powerup or cheat so segment limits can be adjusted properly; In D2 draw unexplored areas blue when cheating and give HUD message when activating cheat; Added note in automap code to specify why grates in Descent1 fade
2013-12-15 13:11:14 +01:00
Kp
027b6fd20a
Only build tables in debug builds
2013-12-15 05:20:37 +00:00
Kp
2ce15e5703
Remove unused extern object variables
2013-12-15 01:59:05 +00:00
Kp
ddffec01c7
Use enum for multi_send_msgsend_state values
2013-12-15 01:52:13 +00:00
Kp
f8756b2c19
Combine composition of IFF name/indicator
2013-12-15 01:50:29 +00:00
Kp
14811b12d9
Format entire game description in a single call
2013-12-15 01:47:07 +00:00
Kp
6779dc4991
Remove unused command MULTI_DROP_ORB
2013-12-15 01:45:19 +00:00
Kp
00a9ca2423
Remove unused MULTI_PLAY_BY_PLAY
...
The sending function has been disabled since Bazaar import.
2013-12-15 01:45:19 +00:00
zico
ec516b5675
Disable powerup capping for cooperative game mode as it potentially deletes weapons carried over from another level
2013-12-14 02:53:45 +01:00
zico
c4f14f1044
Small change in ogl_ulinec to haround up right and bottom properly
2013-12-14 02:34:13 +01:00
Kp
8a5644fc07
Only pass -Werror=redundant-decls if it works well
2013-12-13 03:59:49 +00:00
Kp
cb4fd7c1b4
Compact known file extension storage
2013-12-13 03:58:01 +00:00
Kp
4dfceab50b
Factor out file extension filtering
2013-12-13 03:51:14 +00:00
Kp
593d0b25ff
Remove duplicate kconfig labels
...
import re, fileinput
which = 3
last = [None, None]
e = re.compile(r'(?P<left> \{(?:\s*\d+,){8})(?P<quote>"?)(?P<s>[^",]+)(?P=quote)(?P<right>,.*},)$')
for line in fileinput.input(inplace=True):
if line == '#if defined(DXX_BUILD_DESCENT_I)\n':
which = 1
elif line == '#elif defined(DXX_BUILD_DESCENT_II)\n':
which = 2
elif line == '#endif\n':
which = 3
else:
m = e.match(line)
if m:
s = m.group('s')
suppress = True
if (which & 1) and last[0] != s:
suppress = False
last[0] = s
if (which & 2) and last[1] != s:
suppress = False
last[1] = s
if suppress:
line = m.group('left') + ' NULL /* duplicate */' + m.group('right') + '\n'
print line,
2013-12-13 03:50:51 +00:00
Kp
ff8db8d39e
Reduce relocations for Controls members
2013-12-13 03:49:37 +00:00
Kp
2bd302cddd
Move Controls ubyte values into substructure
2013-12-13 03:47:57 +00:00
Kp
3f92639efc
Remove unnecessary PCH variable
2013-12-13 03:44:02 +00:00
Kp
8bd9f9bccd
Make vers_id.o depend on PCH if present
2013-12-13 03:44:02 +00:00
Kp
ac6fe9aca6
Test for compiler support for pre-compiled headers
...
Fix interaction of pre-compiled headers with configure-modified flags.
2013-12-13 03:44:02 +00:00
Kp
07877853ba
Use static_assert where available
2013-12-13 03:44:02 +00:00
Kp
e784dd4357
Remove C compiler handling from SConstruct
2013-12-13 03:44:02 +00:00
Kp
02f4c007e3
Make scores_handler fades[] static const
2013-12-11 04:06:35 +00:00
Kp
5ba6917c30
Optimize Degroup not to use n² deletion algorithm
2013-12-11 04:05:58 +00:00
Kp
a3fa660d33
Remove casts in dxx_sendto calls
2013-12-11 04:05:24 +00:00
Kp
23e58e2deb
Use bitwise-not, not boolean-not, for texture masks
2013-12-11 04:03:04 +00:00
zico
e195290fe4
Added quick load ability for savestates
2013-12-10 18:13:32 +01:00
zico
5a36ffdb17
Reduced base divisor for mouse X and Y axes, doubling acceleration and base sensitivity
2013-12-10 16:26:37 +01:00
zico
dc2a7c6df0
Rearranged EVENT_KEY_RELEASE for automap_handler so it will not trigger automap_key_command and create a double input following EVEN_KEY_COMMAND
2013-12-10 02:58:56 +01:00
zico
6bd9c2bfc1
Rearranged game mode check so ANARCHY_ONLY_MISSION will not prohibit CTF, Hoard or Bounty
2013-12-10 01:52:19 +01:00