Kp
b820098103
Pass std::span to multi_do_boss_start_gate
2022-07-30 17:42:59 +00:00
Kp
2b4dd444ca
Pass std::span to multi_do_boss_cloak
2022-07-30 17:42:59 +00:00
Kp
6ab2068a82
Pass std::span to multi_do_boss_teleport
2022-07-30 17:42:59 +00:00
Kp
202e3309a7
Pass std::span to multi_recv_escort_goal
2022-07-30 17:42:59 +00:00
Kp
cab6900f29
Pass std::span to multi_do_flags
2022-07-30 17:42:59 +00:00
Kp
53d5c296ff
Pass std::span to multi_do_effect_blowup
2022-07-30 17:42:59 +00:00
Kp
2cb7de84b1
Pass std::span to multi_do_start_trigger
2022-07-30 17:42:59 +00:00
Kp
802b9bd37e
Pass std::span to multi_do_trigger
2022-07-30 17:42:59 +00:00
Kp
ff8e2090ab
Pass std::span to multi_do_score
2022-07-30 17:42:59 +00:00
Kp
980b3080ce
Pass std::span to multi_do_robot_fire
2022-07-30 17:42:59 +00:00
Kp
fa0f7cef11
Pass std::span to multi_do_release_robot
2022-07-30 17:42:59 +00:00
Kp
d4b047bb02
Pass std::span to multi_do_robot_position
2022-07-30 17:42:59 +00:00
Kp
0036b91084
Pass std::span to multi_do_claim_robot
2022-07-30 17:42:59 +00:00
Kp
eb5880ac93
Pass std::span to multi_do_ranking
2022-07-30 17:42:59 +00:00
Kp
8cb20bb3ae
Pass std::span to multi_do_finish_game
2022-07-30 17:42:59 +00:00
Kp
73361b9ae0
Pass std::span to multi_do_orb_bonus
2022-07-30 17:42:59 +00:00
Kp
575be1d1ee
Pass std::span to multi_do_play_sound
2022-07-30 17:42:59 +00:00
Kp
47cb7d7801
Pass std::span to multi_do_create_powerup
2022-07-30 17:42:59 +00:00
Kp
e5799fdabe
Pass std::span to multi_do_controlcen_fire
2022-07-30 17:42:59 +00:00
Kp
f0bae36bc7
Pass std::span to multi_do_door_open
2022-07-30 17:42:59 +00:00
Kp
7a8a2789e6
Pass std::span to multi_do_escape
2022-07-30 17:42:59 +00:00
Kp
81654ae8a9
Pass std::span to multi_do_light
2022-07-30 17:42:59 +00:00
Kp
784216d8ac
Pass std::span to multi_do_seismic
2022-07-30 17:42:59 +00:00
Kp
1ea67e18e8
Pass std::span to multi_do_wall_status
2022-07-30 17:42:59 +00:00
Kp
3b43f040fd
Pass std::span to multi_do_stolen_items
2022-07-30 17:42:59 +00:00
Kp
dd374ef65e
Pass std::span to multi_do_guided
2022-07-30 17:42:59 +00:00
Kp
74fd22a5a0
Pass std::span to multi_do_drop_flag
2022-07-30 17:42:59 +00:00
Kp
a5c6a25cf2
Pass std::span to multi_do_drop_marker
2022-07-30 17:42:59 +00:00
Kp
652e3ceddd
Pass std::span to multi_do_sound_function
2022-07-30 17:42:59 +00:00
Kp
84bb23e6d3
Pass std::span to multi_do_vulcan_weapon_ammo_adjust
2022-07-30 17:42:59 +00:00
Kp
4dd058d501
Pass std::span to multi_do_drop_weapon
2022-07-30 17:42:59 +00:00
Kp
5ac2a90121
Pass std::span to multi_do_controlcen_destroy
2022-07-30 17:42:59 +00:00
Kp
454bec9715
Pass std::span to multi_do_quit
2022-07-30 17:42:59 +00:00
Kp
f923a5d710
Pass std::span to multi_do_player_deres
2022-07-30 17:42:59 +00:00
Kp
aa95c6f804
Pass std::span to multi_do_remobj
2022-07-30 17:42:59 +00:00
Kp
7d464db18d
Pass std::span to multi_do_reappear
2022-07-30 17:42:59 +00:00
Kp
74af38bba2
Pass std::span to multi_do_position
2022-07-30 17:42:59 +00:00
Kp
49f608010a
Pass std::span to multi_do_robot_explode
2022-07-30 17:42:59 +00:00
Kp
e1269dca35
Pass std::span to multi_do_create_robot
2022-07-30 17:42:59 +00:00
Kp
3bc110ec01
Fold robot kamikaze explode_object calls
2022-07-30 17:42:59 +00:00
Kp
dc674eafe8
Replace various uses of std::enable_if with C++20 requires()
...
Compiler error messages are generally better when reporting a misuse
that fails a requires() versus reporting a misuse that fails a
std::enable_if. In some cases, this also makes the code clearer, and
avoids the need for dummy template parameters as a place to invoke
std::enable_if.
2022-07-30 17:42:59 +00:00
Kp
58061b5f45
Use C++20 std::span for morph_data
2022-07-30 17:42:59 +00:00
Kp
f92a978b4a
Unify collide_player_and_materialization_center -> apply_damage_to_player
...
D2 changed the rule for the parameter `killer`. Split that out to a
variable and combine the underlying call. This does not change the game
semantics.
2022-07-23 20:58:10 +00:00
Kp
d9d2bac092
Use enum class for apply_damage_to_player::possibly_friendly
...
Also, remove a redundant invulnerability check in one caller.
apply_damage_to_player already tests for invulnerability and returns if
appropriate.
2022-07-23 20:58:10 +00:00
Kp
a44f80fd64
Flatten call chain to net_udp_send_data
2022-07-23 20:58:10 +00:00
Kp
e6c510d467
Use vector read/write helpers in network messages
2022-07-23 20:58:10 +00:00
Kp
4141e04359
Pass thief stolen item storage to drop_stolen_items
2022-07-23 20:58:10 +00:00
Kp
a3a2f7cc9a
Pass context to drop_stolen_items
...
Pass the specific object fields needed, rather than the entire object.
2022-07-23 20:58:10 +00:00
Kp
801c76cbd2
Pass context to spit_powerup
2022-07-23 20:58:10 +00:00
Kp
b61add4765
Pass context to drop_powerup
2022-07-23 20:58:10 +00:00