Kp
2a1e07adfa
Detect failure to git ls-files
for check_header_includes
2015-10-13 02:43:25 +00:00
Kp
d3198ab0bd
Use env.Textfile to generate stub check_header_includes.cpp
2015-10-13 02:43:24 +00:00
Kp
365340560d
Cache result of checking for .git
2015-10-13 02:43:24 +00:00
Kp
c1b1da61e5
Support unusual values of CPP define SHAREPATH
...
Use the full CPP define quoting function instead of just hoping
sharepath is clean.
2015-10-13 02:43:24 +00:00
Kp
2e17c03c9e
Remove unnecessary list comprehension for vers_id.cpp
...
It was a convenience for binding 's' to one value, but that can be
rewritten without the comprehension.
2015-10-13 02:43:24 +00:00
Kp
b4556d13fa
Move UDP_netgame_info_lite into D1||D2
...
UDP_netgame_info_lite has a member that is only defined if D1||D2.
Guard the whole structure since it cannot be used in common code.
2015-10-13 02:43:24 +00:00
Kp
9bd5c492aa
Move valptridx size call out of line
2015-10-13 02:43:24 +00:00
Kp
8f656c40db
Use range_for for validate_path
2015-10-13 02:43:24 +00:00
John Ackerman
a606caa2b4
Improve .ini files and help message output
2015-10-11 22:21:00 +00:00
Kp
a0919bf345
Add support for -add-missions-dir
2015-10-11 22:21:00 +00:00
Kp
02754f9ada
Reduce PHYSFSX_getRealPath length checks
2015-10-11 22:21:00 +00:00
Kp
a37bae4b4f
Track output size for PHYSFSX_getRealPath
2015-10-11 22:21:00 +00:00
Kp
3ceefb4189
Pass filename to Error
2015-10-11 22:21:00 +00:00
Kp
ddf1ded74c
Simplify add_missions_to_list
2015-10-11 22:21:00 +00:00
Kp
ad8c64d7ff
Remove unnecessary extension strip in promote
2015-10-11 22:21:00 +00:00
Kp
ad8b4230df
Move fwdsegment.h -> fwd-segment.h for consistency
2015-10-10 03:44:14 +00:00
Kp
2196008178
Move fwdobject.h -> fwd-object.h for consistency
2015-10-10 03:44:14 +00:00
Kp
61f6c81f74
Use std::replace for rewriting count to wide 1s
2015-10-10 03:44:14 +00:00
Kp
4585faa461
Cache reference to secondary_ammo
2015-10-10 03:44:14 +00:00
Kp
36c52f7437
Reduce pointer->int->pointer conversions for thief
2015-10-10 03:44:14 +00:00
Kp
48b7416433
Factor out gauge width string
2015-10-09 02:46:11 +00:00
Kp
a47c6e599d
Shrink menu_bit_wrapper_t when B is empty
2015-10-09 02:46:11 +00:00
Kp
927618e650
Remove useless PHYSFS_eof tests
...
Each test triggers a system seek call. EOF will be signalled by
PHYSFSX_fgets returning nullptr.
2015-10-09 02:46:11 +00:00
Kp
a4826a2f75
Defer PHYSFS_tell in PHYSFSX_fgets
2015-10-09 02:46:11 +00:00
Kp
1ecbeb6bf9
Remove redundant use of PHYSFSX_exists
2015-10-09 02:46:11 +00:00
Kp
61fe046ba2
Reuse show_first_found_title_screen for Descent 1
...
This avoids an Error call if none of the titles are available.
2015-10-09 02:46:11 +00:00
Kp
1d99084026
Use UserError when main hog is missing
...
Error traps to the debugger and then aborts, which is not appropriate
for a user setup error.
2015-10-09 02:46:11 +00:00
Kp
5fc3e44bee
Simplify setup of linked ham
2015-10-09 02:46:11 +00:00
Kp
dd0f5cb83f
Move fwdvalptridx.h -> fwd-valptridx.h for consistency
2015-10-09 02:46:11 +00:00
Kp
ffd6c113ae
Move fwdwall.h -> fwd-wall.h for consistency
2015-10-09 02:46:10 +00:00
Kp
743f2df80f
Add fwd-window.h with forward declarations of window.h
2015-10-09 02:46:10 +00:00
Kp
78de0ac119
Add fwd-event.h with forward declarations of event.h
2015-10-09 02:46:10 +00:00
Kp
e8a4a25639
Use template alias for window_subfunction_t
2015-10-09 02:46:10 +00:00
Kp
cb5c0186b3
Remove obsolete PHYSFSX_check_read/PHYSFSX_check_write overloads
2015-10-09 02:46:10 +00:00
Kp
a71e886fce
Add scons option to skip pch optimization
...
Add option to compute indirect includes even when not necessary, since
indirect includes influence the inclusion count shown in the comments.
Enabling this option makes SCons work harder for the same output binary.
It should only be used by developers who want to see precise file
inclusion counts.
2015-10-09 02:46:10 +00:00
Kp
72400b1a4c
Remove unused read_player_dxx return value
2015-10-09 02:46:10 +00:00
Kp
bca143d87d
Only include ogl_init.h in OpenGL builds
2015-10-09 02:46:10 +00:00
Kp
8032aee461
Enable ammo-based auto-select for Gauss
...
Autoselect from pick_up_vulcan_ammo only ever armed the Vulcan cannon,
even if the user has and prefers a Gauss cannon. This is probably an
oversight from when D2 weapons were added. Rework the pickup logic in
D2 so that the more desirable of Vulcan or Gauss is picked.
2015-10-09 02:46:10 +00:00
Kp
29f79f0a6b
Enable -notitles for Descent 2
2015-10-09 02:46:09 +00:00
Kp
b36d95dccd
Use generate_n to initialize font chars
2015-10-09 02:46:09 +00:00
Kp
71bde6f35f
Use range_for for properties_read_cmp
2015-10-09 02:46:09 +00:00
Kp
8d2d69d663
Always run mini-autoselect for bombs
...
Autoselect events are gated on the player having none of the item prior
to this pickup, so making the mini-autoselect more aggressive should not
cause unwanted switches.
Since the main autoselect is complicated, requiring the mini-autoselect
to happen only when the main autoselect is skipped makes it complicated
for players to reason about whether the mini-autoselect will happen.
2015-10-09 02:46:09 +00:00
Kp
7034b68357
Manage world time automatically where possible
...
For all cases where world time nests, use automatic management. Some
sites disable time in one function and enable it elsewhere. These are
untouched.
2015-10-09 02:46:09 +00:00
Kp
820abdad41
Fix SDL build break in clipper.h
2015-10-09 02:46:09 +00:00
Kp
8dd1f7c2cf
Move texture_list_index into local scope
2015-10-09 02:46:09 +00:00
Kp
745161a2d1
Tighten alt_textures test
2015-10-09 02:46:09 +00:00
Kp
75104b80f0
Fix operand ordering for team kills
...
Fixes: 4a0a2b7da5
("Use team_kills in team games")
2015-10-04 22:30:02 +00:00
Kp
9da2a938d8
Make team_kills signed
...
Suicides can make kill counts negative.
2015-10-03 22:15:17 +00:00
Kp
4a0a2b7da5
Use team_kills in team games
2015-10-03 22:15:17 +00:00
Kp
b447adcce1
Initialize all vertices in create_abs_vertex_lists
...
Some compiler configurations warn that vertices[4] and vertices[5] may
be used uninitialized. Initialize them to a bogus value so that any
actual use will trap, but the comparisons will be well defined.
2015-10-03 17:17:50 +00:00