zico
dad3e953e9
Retored historically accurate versions of homing tracking and lifeleft calculations for D1X and D2X based on their original source code releases instead of mixing them together. Further encabsuled NEWHOMER code to disable unused functions and variables if NEWHOMER is disabled.
2016-08-17 13:43:01 +02:00
Kp
9e31914e6a
Remove useless casts in similar/main/playsave.cpp
2016-08-17 04:44:22 +00:00
Kp
cc74c91c89
Remove useless casts in similar/main/newdemo.cpp
2016-08-17 04:44:22 +00:00
Kp
70df47da32
Remove useless casts in similar/main/multibot.cpp
2016-08-17 04:44:22 +00:00
Kp
37fed077ee
Remove useless casts in similar/arch/ogl/ogl.cpp
2016-08-17 04:44:22 +00:00
Kp
9b3adfb020
Remove useless casts in similar/arch/ogl/gr.cpp
2016-08-17 04:44:22 +00:00
Kp
6dc16bf468
Remove useless cast in similar/2d/pcx.cpp
2016-08-17 04:44:22 +00:00
Kp
b1d88fd378
Remove useless cast in similar/main/iff.cpp
2016-08-17 04:44:22 +00:00
Kp
4b92942bb6
Switch newdemo.cpp to cast Secondary_weapon like Primary_weapon
...
Both Primary_weapon and Secondary_weapon should use the underlying enum
type. Primary_weapon uses its enum type now. Secondary_weapon will use
its enum type eventually. Add appropriate casts to newdemo.cpp to keep
it working when those changes are made.
2016-08-17 04:44:22 +00:00
Kp
1d1f3f6568
Allocate fewer jukebox pointers for small files
2016-08-08 00:07:19 +00:00
Kp
7ac89d0a14
Update jukebox song count at end of read_m3u
2016-08-08 00:07:19 +00:00
Kp
2885070ba8
Remove unnecessary ~jukebox_songs
...
The storage is managed by a unique_ptr, so the default destructor is
sufficient.
2016-08-08 00:07:19 +00:00
Kp
68ac4acd10
Combine jukebox allocations
2016-08-06 19:55:26 +00:00
Kp
8247713850
Use RAII for m3u FILE*
2016-08-06 19:55:26 +00:00
Kp
66422a2ea3
Combine PHYSFSX_isNewPath calls in select_file_recursive2
2016-08-06 19:55:26 +00:00
Kp
5b71faacda
Use RAII to remove temporary PHYSFS search path
2016-08-06 19:55:25 +00:00
Kp
a09dce6ead
Remove char[N] overload for PHYSFSX_getRealPath
2016-08-06 19:55:25 +00:00
Kp
a98510b17e
Move CMLevelMusicTrack to CCfg
2016-08-06 19:55:25 +00:00
Kp
771665835d
Move LastMission to CCfg
2016-08-06 19:55:25 +00:00
Kp
ac8232caca
Move CMMiscMusic to CCfg
2016-08-06 19:55:25 +00:00
Kp
50599c0dad
Move CMLevelMusicPath to CCfg
2016-08-06 19:55:25 +00:00
Kp
b449986ea8
Use make_unique to reset editor's Current_mission
2016-08-06 19:55:25 +00:00
Kp
53deef077a
Prefer make_unique over raw new
2016-08-06 19:55:24 +00:00
Kp
a1ab71f5ad
Avoid calling make_unique<...>({})
...
The compiler may or may not recognize that the temporary T{} passed to
make_unique can be omitted. Help it by passing nothing, then explicitly
clearing the returned data as a separate step.
2016-08-06 19:55:24 +00:00
Kp
cbeb42e48c
Flatten some newmenu type hierarchy
2016-08-06 19:55:24 +00:00
Kp
6b4e639f65
Flatten newmenu_subfunction_t type
2016-08-06 19:55:24 +00:00
Kp
c772385f81
Fix check_header_includes=1 Linux build
2016-08-06 19:55:24 +00:00
Kp
1774676571
Use class to wrap Primary_weapon+Delayed_primary
2016-08-06 19:55:23 +00:00
Kp
7128141c55
Use enum for newmenu item type
2016-08-05 04:12:21 +00:00
Kp
3f051100a5
Move newmenu_item text_len into union
2016-07-31 22:25:51 +00:00
Kp
52d0ded9ee
Cache change_res resolution computations
2016-07-31 22:25:50 +00:00
Kp
f5c6b0fbf6
Move newmenu_item min_value into union
2016-07-31 22:25:50 +00:00
Kp
c9aba5b04e
Move newmenu_item max_value into union
2016-07-31 22:25:50 +00:00
Kp
26904ea6b3
Use range_for for newmenu_create_structure radio reset
2016-07-31 22:25:50 +00:00
Kp
344a567d1b
Move newmenu_item group into union
2016-07-31 22:25:50 +00:00
Kp
dd483773e0
Factor out repeated HIRESMODE tests
2016-07-31 22:25:49 +00:00
Kp
35ce30eb94
Simplify net_udp_send_fly_thru_triggers
2016-07-31 22:25:49 +00:00
Kp
a230d24226
Allow trailing comments after num_levels and num_secrets
2016-07-30 21:56:31 +00:00
Kp
66e0fb1a6e
Cache some get_local_player_cloak_time references
2016-07-25 03:48:09 +00:00
Kp
23a85cae27
Cache some get_local_player_invulnerable_time references
2016-07-25 03:48:09 +00:00
Kp
3a86bc6f40
Simplify various multi loops
2016-07-25 03:48:09 +00:00
Kp
e30ed3621a
Fold show_one_extra_view do_cockpit_window_view calls
2016-07-25 03:48:09 +00:00
Kp
db42c2bc56
Fold game_draw_multi_message gr_printf calls
2016-07-25 03:48:09 +00:00
Kp
21ad09ef3d
Fold show_netplayerinfo gr_string calls
2016-07-25 03:48:08 +00:00
Kp
582fef2a37
Fold show_netplayerinfo gr_printf calls
2016-07-25 03:48:08 +00:00
Kp
ea65c74ba9
Move last_player_bump into player_info.Last_bumped_local_player
2016-07-25 03:48:08 +00:00
Kp
f671e6781d
Narrow scope of random vectors
2016-07-24 04:04:25 +00:00
Kp
8a46462846
Move lavafall_hiss_playing into player_info
2016-07-24 04:04:25 +00:00
Kp
8fef6a07b4
Pass const object_base to obj_unlink
2016-07-23 04:10:43 +00:00
Kp
139741ec40
Pass const object_base to Laser_render
2016-07-23 04:10:42 +00:00