Kp
ba7e64bec5
Cache obj->size in draw_player
2016-01-17 05:19:10 +00:00
Kp
1880648c2b
Use ?: for endlevel glitz menu
2016-01-10 21:18:09 +00:00
Kp
7386094bc3
Rename menu macros to reduce token pasting
2016-01-09 16:38:17 +00:00
Kp
2b34547b05
Remove redundant DXX_UDP_MENU_OPTIONS(ENUM)
2016-01-09 16:38:17 +00:00
Kp
de6b66a9cb
Remove sprintf from main/state.cpp
2016-01-09 16:38:17 +00:00
Kp
079c4d8b5c
Move netgame setup strings to param_opt
2016-01-09 16:38:15 +00:00
Kp
bc392aaaf3
Move net_udp start_poll data onto stack
2016-01-09 16:38:15 +00:00
Kp
15c947d732
Remove unused step_up/step_down direction argument
2016-01-09 16:38:15 +00:00
Kp
7b5d74fddb
Remove write-only last_scroll_check
2016-01-09 16:38:15 +00:00
Kp
548af4475d
Factor some newmenu function calls
2016-01-09 16:38:15 +00:00
Kp
e39b609553
Factor out calls to draw_weapon_info_sub
2016-01-09 16:38:15 +00:00
Kp
dd877f52c2
Remove unused weapon defines
2016-01-09 16:38:15 +00:00
Kp
25feb65a6f
Remove unnecessary pointer subtraction in laser.cpp
...
`parent` can be compared to `Viewer` without converting `Viewer` to an
index.
2016-01-09 16:38:14 +00:00
Kp
fd64d3284c
Cache ConsoleObject in move_player_2_segment
2016-01-09 16:38:14 +00:00
Kp
86709f547b
Fix capitalization of PHYSFS_File
...
Per comment in physfs.h, the spelling PHYSFS_file is deprecated.
Replace all instances with PHYSFS_File.
2016-01-09 16:38:14 +00:00
Kp
a3ae630829
Remove default argument for basic_ptridx(index)
2016-01-09 16:38:14 +00:00
Kp
9ceedc96a8
Propagate valptridx requirement up
2016-01-09 16:38:14 +00:00
Kp
cefc79f869
Construct find_point_seg segptridx explicitly
2016-01-09 16:38:13 +00:00
Kp
988df1cc42
Factor out marker index number
2016-01-09 16:38:13 +00:00
Kp
a32d9f01a1
Remove return value truncation in find_object_seg
2016-01-09 16:38:13 +00:00
Kp
98f5afa9f8
Remove default argument for basic_ptr(pointer,array &)
2016-01-09 16:38:13 +00:00
Kp
d17b12da31
Remove default argument for basic_ptr(index,array &)
2016-01-09 16:38:12 +00:00
Kp
7064fcccba
Skip setting segnum/signature of non-objects
2016-01-09 16:38:12 +00:00
Kp
96898bab0a
Block direct changes to Highest_segment_index
...
Route updates through helper functions.
2016-01-09 16:38:12 +00:00
Kp
f48eddeece
Block direct changes to Highest_object_index
...
Route updates through helper functions.
2016-01-09 16:38:12 +00:00
Kp
1cd77754ee
Remove write-only Highest_ever_object_index
2016-01-09 16:38:12 +00:00
Kp
1f91897f5d
Move some game symbols to namespaces
2016-01-09 16:38:12 +00:00
Kp
8dc0f3bd37
Remove unnecessary newmenu_free_background
2016-01-09 16:38:11 +00:00
Kp
fe1c0ee59b
Remove unnecessary free_text
...
The text is stored in a global unique_ptr, so running global destructors
will free the text.
2016-01-09 16:38:11 +00:00
Kp
100af92d3f
Remove unnecessary error_init(NULL)
2016-01-09 16:38:11 +00:00
Kp
7cc8920736
Pass new_wall_type to do_change_walls
...
Each caller knows the trigger type, so pass new_wall_type from the
caller instead of recomputing it inside do_change_walls.
2016-01-09 16:38:11 +00:00
Kp
c2c95e7b4b
Factor out trigger segment loop
2016-01-09 16:38:11 +00:00
Kp
0635dbf108
Pass trigger &
2016-01-09 16:38:11 +00:00
Kp
e24f84298f
Skip rescan walls for force fields
...
Record force fields in the on/off path instead of scanning the array
again.
2016-01-09 16:38:11 +00:00
Kp
3aefd0bf2f
Defer change_segment_light multiply
...
If light_intensity is zero, skip the multiplication.
2016-01-09 16:38:11 +00:00
Kp
4770d3a35e
Factor out wall_illusion_* common logic
2016-01-09 16:38:10 +00:00
Kp
16c754f3a2
Split key_toggle_repeat paths at compile time
...
Every caller passes a literal truth value. Split the implementation by
the truth value. This saves loading the value before the call and
testing it inside the call.
2016-01-09 16:38:10 +00:00
Kp
23d6735f7a
Use .reset() for free_endlevel_data bm
2016-01-09 16:38:10 +00:00
Kp
31360adb9c
Combine command line help printf calls
2016-01-09 16:38:10 +00:00
Kp
68a31121ee
Use menu macros for sound menu
2016-01-09 16:38:10 +00:00
Kp
410b09a330
Expand macro Player_exploded
2016-01-09 16:38:10 +00:00
Kp
47190be8e9
Fold Player_exploded into Player_dead_state
2016-01-09 16:38:10 +00:00
Kp
608cfdbf07
Combine Mission::enhanced with Mission::descent_version
2016-01-09 16:38:09 +00:00
Kp
0c0dff9def
Fix fvi sqrt
...
A previous optimization restructured the code in a way that lost the
>>16 normally applied to the product of two fix values.
Fixes: 707b69220d
("Skip sqrt,square in check_vector_to_sphere_1")
2016-01-03 20:21:36 +00:00
Kp
e3e77f8724
Remove sprintf from automap.cpp
2016-01-03 20:21:36 +00:00
Kp
3acfdcd00a
Remove sprintf from game.cpp
2016-01-03 20:21:36 +00:00
Kp
b2882fd48f
Remove sprintf from gamerend.cpp
2016-01-03 20:21:36 +00:00
Kp
e222a13495
Remove sprintf from gameseq.cpp
2016-01-03 20:21:36 +00:00
Kp
0d15877010
Remove sprintf from gauges.cpp
2016-01-03 20:21:36 +00:00
Kp
421fd8a11c
Remove sprintf from newmenu.cpp
2016-01-03 20:21:36 +00:00
Kp
842756630f
Remove sprintf from piggy.cpp
2016-01-03 20:21:36 +00:00
Kp
4afe97fd71
Remove sprintf from piggy_is_substitutable_bitmap
2016-01-03 20:21:36 +00:00
Kp
fd85e3cfc0
Remove sprintf from scores.cpp
2016-01-03 20:21:35 +00:00
Kp
24e902d4cf
Simplify find_connect_side
2016-01-03 20:21:35 +00:00
Kp
5ba5910e7a
Use symbolic side_none for testing find_connect_side result
2016-01-03 20:21:35 +00:00
Kp
d7890e37cb
Skip copying segment normals in render_side
2016-01-03 20:21:35 +00:00
Kp
2e8900ab73
Remove unused lcnt_save,scnt_save
2016-01-03 20:21:35 +00:00
Kp
3428ea6392
Remove Show_only_curside
...
Show_only_curside was locked to 0 in EDITOR builds, but only EDITOR
builds could render the current side.
2016-01-03 20:21:35 +00:00
Kp
c57db299ba
Make first_terminal_seg local
2016-01-03 20:21:34 +00:00
Kp
823ff63126
Move MplTrackerAddr to CArg
2015-12-24 04:01:29 +00:00
Kp
0b87ff267f
Move MplTrackerPort to CArg
2015-12-24 04:01:29 +00:00
Kp
3f9f1f2b49
Move MplUdpMyPort to CArg
2015-12-24 04:01:29 +00:00
Kp
56e77d4fec
Move MplUdpHostPort to CArg
2015-12-24 04:01:28 +00:00
Kp
0fb84b883f
Move DbgAltTex to CArg
2015-12-24 04:01:28 +00:00
Kp
b0e0f48058
Move DbgTexMap to CArg
2015-12-24 04:01:28 +00:00
Kp
a91ef00a86
Move DbgNoCompressPigBitmap to CArg
2015-12-24 04:01:28 +00:00
Kp
96b9f606d7
Invert game_render_frame_mono argument
2015-12-24 04:01:28 +00:00
Kp
834258fffa
Move DbgNoDoubleBuffer to CArg
2015-12-24 04:01:28 +00:00
Kp
45a287f44b
Move DbgNoRun to CArg
2015-12-24 04:01:28 +00:00
Kp
4f14be6056
Move MplUdpHostAddr to CArg
2015-12-24 04:01:27 +00:00
Kp
d7c694b126
Move OglFixedFont to CArg
2015-12-24 04:01:27 +00:00
Kp
679e0adf3d
Move SysAutoDemo to CArg
2015-12-24 04:01:27 +00:00
Kp
cbd2cd7c54
Move SysNoTitles to CArg
2015-12-24 04:01:27 +00:00
Kp
2629b5b3d9
Move SysAutoRecordDemo to CArg
2015-12-24 04:01:27 +00:00
Kp
93f3162a41
Move SysLowMem to CArg
2015-12-24 04:01:26 +00:00
Kp
2b4447f927
Move SysUsePlayersDir to CArg
2015-12-24 04:01:26 +00:00
Kp
2cea05d0a7
Move SysRecordDemoNameTemplate to CArg
2015-12-24 04:01:26 +00:00
Kp
63cd2dbb6b
Move SysPilot to CArg
2015-12-24 04:01:26 +00:00
Kp
9f1abe1910
Move SndNoMusic to CArg
2015-12-24 04:01:26 +00:00
Kp
bb3a386b47
Move GfxSkipHiresFNT to CArg
2015-12-24 04:01:26 +00:00
Kp
23bb4c5826
Move SysNoNiceFPS to CArg
2015-12-24 04:01:26 +00:00
Kp
29e305c6df
Use namespace dcx for SDL save_screen_shot
2015-12-23 03:28:18 +00:00
Kp
be04d3a4f9
Rewrite CLI
...
Remove artificial length limit on input.
Enable multi-line display of input.
2015-12-22 04:18:52 +00:00
Kp
287a74f88b
Multiplex do_laser_firing_player flags
2015-12-22 04:18:52 +00:00
Kp
f4a5040a60
Remove write-only Last_laser_fired_time
2015-12-22 04:18:52 +00:00
Kp
1975cdb912
Reorder flicker_lights tests
2015-12-22 04:18:52 +00:00
Kp
2bd538f353
Sort delta light indices
2015-12-22 04:18:52 +00:00
Kp
de88e595e9
Hoist change_light variables
2015-12-22 04:18:52 +00:00
Kp
a892c24bc2
Simplify object phys_info zero
2015-12-22 04:18:51 +00:00
Kp
a60c9683d3
Remove write-only Unused_object_slots
2015-12-22 04:18:51 +00:00
Kp
e8c34be843
Use v*ptr* factories with highest_valid
2015-12-22 04:18:51 +00:00
Kp
d479819931
Use absolute_sibling to reduce global references for ptridx
2015-12-22 04:18:51 +00:00
Kp
14dd5b91aa
Save objptridx for boss instead of recomputing it
2015-12-22 04:18:51 +00:00
Kp
8a22ca9594
Shorten multi_apply_goal_textures
2015-12-22 04:18:51 +00:00
Kp
ab944ae8b1
Reuse measurement of TXT_GAME_OVER
2015-12-22 04:18:50 +00:00
Kp
20f432e5c6
Save & to con_buffer slot
2015-12-22 04:18:50 +00:00
Kp
db9fb0ed42
Move more symbols into namespace dcx/dsx
2015-12-22 04:18:50 +00:00
Kp
ea02aeeaab
Move kill_matrix update up
2015-12-22 04:18:49 +00:00
Kp
132367ce27
Fix SDL-only build after namespace changes
2015-12-18 04:08:24 +00:00
Kp
28ee4c1804
Move DbgUseOldTextureMerge to CArg
2015-12-18 04:08:24 +00:00