Kp
15e8ceeaa4
Use std::span to bound read_model_file valid bytes
2022-08-22 01:24:49 +00:00
Kp
42caec7e58
Use std::span for pof reading functions
2022-08-22 01:24:49 +00:00
Kp
c5c5e8ea39
Simplify pof_read_angs
...
The caller passes a length of 1, so inline that and simplify the
function.
2022-08-22 01:24:49 +00:00
Kp
69579df368
Simplify pof_read_short
...
Use the general little-endian helper.
2022-08-22 01:24:49 +00:00
Kp
87c79206e8
Simplify pof_cfread
...
All callers pass a value of 1 for one of the two length terms, so inline
that and eliminate the multiplication.
2022-08-22 01:24:49 +00:00
Kp
bfb7ed7efc
Simplify pof_read_vecs
...
All callers pass a count of 1, so inline that and eliminate the loop.
2022-08-22 01:24:49 +00:00
Kp
26ab08d55f
Add stub definitions of enum vertnum_t,wallnum_t
...
Given this code:
```
enum class X : unsigned;
X a{1};
```
gdb has an unfortunate behavior of reporting "incomplete type" and
refusing to show the underlying value of `a`, even when `a` is in scope.
Adding `enum class X : unsigned {}` fixes this and allows gdb to show
the value.
2022-08-22 01:24:49 +00:00
Kreeblah
25688635bb
Use Brewfile for macOS Github builds
2022-08-15 21:20:18 -07:00
Kp
d49931d57b
Merge commit 'github-packaging-c++20' into master
2022-08-16 03:15:32 +00:00
Kp
0d045ae3da
Fix Windows net_udp build
...
Convert the RAIIsocket to a simple SOCKET before passing it to FD_SET.
Otherwise, the build fails with:
```
similar/main/net_udp.cpp: In function 'int {anonymous}::udp_general_packet_ready(dcx::{anonymous}::RAIIsocket&)':
similar/main/net_udp.cpp:969:2: error: use of deleted function 'bool dcx::{anonymous}::RAIIsocket::operator==(T) const [with T = long long unsigned int]'
969 | FD_SET(sock, &set);
| ^~~~~~
similar/main/net_udp.cpp:493:29: note: declared here
493 | template <typename T> bool operator==(T) const = delete;
| ^~~~~~~~
```
2022-08-16 03:15:04 +00:00
Kreeblah
bfdeff93b2
Added Brewfile and updated macOS compilation instructions
2022-08-14 19:36:02 -07:00
raptor
6440e387d6
Fix Linux/macOS builds with c++20 dialect
2022-08-14 19:00:18 -06:00
Kp
daebb32925
Merge commit 'github-packaging' into master
2022-08-14 22:53:35 +00:00
raptor
1a10ffd031
Update macos package building scripts to install dylibbundler via brew and instruct scons to do the bundling
2022-08-11 21:52:06 -06:00
raptor
85a617386f
Packaging changes:
...
- Split out builds in order to trigger them separately
- Anchor macdylibbundler to a specific revision
2022-08-10 09:25:08 -06:00
raptor
0e03692ec3
Packages for Windows, Linux, and macOS. Uses Github's Actions
2022-08-01 09:39:41 -06:00
Kp
fb75a7900c
Pass std::span to multi_do_message
2022-07-30 17:42:59 +00:00
Kp
81ab68e0f6
Pass std::span to multi_do_player_inventory
2022-07-30 17:42:59 +00:00
Kp
31b8d98e22
Pass std::span to multi_do_kill_client
2022-07-30 17:42:59 +00:00
Kp
e76cefd846
Pass std::span to multi_do_kill_host
2022-07-30 17:42:59 +00:00
Kp
43c86b94af
Split multi_do_kill to multi_do_kill_host+multi_do_kill_client
...
The kill messages have different lengths and conditional processing
based on whether the message is MULTI_KILL_CLIENT or MULTI_KILL_HOST.
Split the two into separate functions to simplify the implementation of
each.
2022-07-30 17:42:59 +00:00
Kp
127a1f15e6
Pass std::span to multi_do_gmode_update
2022-07-30 17:42:59 +00:00
Kp
b24d61cd0a
Pass std::span to multi_do_msgsend_state
2022-07-30 17:42:59 +00:00
Kp
c5eeaa48cd
Pass std::span to multi_do_bounty
2022-07-30 17:42:59 +00:00
Kp
da138757e6
Pass std::span to multi_do_kill_goal_counts
2022-07-30 17:42:59 +00:00
Kp
79683690bd
Pass std::span to multi_do_heartbeat
2022-07-30 17:42:59 +00:00
Kp
4893196138
Pass std::span to multi_do_restore_game
2022-07-30 17:42:59 +00:00
Kp
4e42dacd23
Pass std::span to multi_do_save_game
2022-07-30 17:42:59 +00:00
Kp
96a260cea0
Pass std::span to multi_do_hostage_door_status
2022-07-30 17:42:59 +00:00
Kp
55bbc5f599
Pass std::span to multi_do_create_robot_powerups
2022-07-30 17:42:59 +00:00
Kp
4ce39a399e
Pass std::span to multi_do_boss_create_robot
2022-07-30 17:42:59 +00:00
Kp
c575283c5e
Pass std::span to multi_do_boss_stop_gate
2022-07-30 17:42:59 +00:00
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