JohnAFernandez
252392b26a
Merge pull request #5865 from MjnMixael/scpui_multi_options
...
Scpui multi options
2023-12-11 11:54:53 -05:00
Goober5000
6e9b31cb5a
replace pointers with indexes in ship registry and oswpt
...
This refactors the ship registry and the OSWPT struct to store data as indexes rather than pointers. This is a prerequisite for making these collections dynamic in the future. See also #5800 .
2023-12-08 19:45:58 -05:00
mjn-mixael
668fc18d5c
Make these two dropdown options to account for the longer string values
2023-12-06 15:29:32 -06:00
mjn-mixael
a101e3cf77
spelling is hard
2023-12-06 15:25:37 -06:00
mjn-mixael
dcce4a6538
Set the globals at player select rather than player load
2023-12-06 15:08:23 -06:00
mjn-mixael
7ce3217f17
multi login info & ip address list API
2023-12-06 12:49:38 -06:00
mjn-mixael
33a1b1f8ca
clean up and fix
2023-12-06 09:59:36 -06:00
mjn-mixael
a29a97f39a
xstrs
2023-12-06 08:22:26 -06:00
mjn-mixael
79d3077071
quick & dirty initial work for the toggle options
2023-12-05 09:30:04 -06:00
JohnAFernandez
d280800bce
Merge pull request #5847 from MjnMixael/remove_cd_checks
...
Remove the cd checks that always returned true anyway
2023-11-30 10:38:19 -05:00
JohnAFernandez
5227e2e0c4
Merge pull request #5830 from MjnMixael/vectorize_multi_pxo
...
Vectorize multi pxo
2023-11-29 13:47:04 -05:00
mjn-mixael
95baa85750
remove the cd checks that always returned true anyway
2023-11-29 11:27:31 -06:00
mjn-mixael
3ad66b988d
unused var
2023-11-28 20:48:21 -06:00
mjn-mixael
969759426a
list instead of vector
2023-11-28 20:31:54 -06:00
mjn-mixael
7bb6a8ae86
negate this
2023-11-26 23:49:02 -06:00
asarium
260f15624b
Update PR build image and compilers
...
This advances the versions for Clang to 16 and GCC to 13 along with
fixing any warnings these new versions are detecting now.
The new image versions also include Vulkan so the additional workflow
step for installing that is not necessary anymore.
2023-11-26 12:23:57 +01:00
mjn-mixael
6de870766a
address additional feedback
2023-11-25 10:25:58 -06:00
mjn-mixael
2ca9d6672c
address feedback
2023-11-23 10:47:55 -06:00
mjn-mixael
7281e8d127
unused
2023-11-22 13:18:27 -06:00
mjn-mixael
a730f30435
cleanup for checks
2023-11-22 13:07:16 -06:00
mjn-mixael
cd5f044217
vectorize the chat
2023-11-22 12:31:05 -06:00
mjn-mixael
8b90cda3f4
nullptr
2023-11-22 09:52:13 -06:00
mjn-mixael
841ae430c0
Vectorize the players list
2023-11-21 16:06:27 -06:00
mjn-mixael
9d0ee6ab0d
vectorize the channel list
2023-11-20 16:48:43 -06:00
Goober5000
d8ff77f57f
Merge pull request #5782 from Goober5000/build_fixes
...
a few build fixes
2023-11-09 15:27:38 -05:00
Goober5000
37c344a127
a few build fixes
...
1. use `SIZE_T_ARG` instead of `"%lu"`; should fix format warning in #5780
2. since `HeapAllocator::checkRangesMerged()` has no effect unless running in debug, `#ifdef` out the function; should fix CI warning in #5778
2023-11-07 17:51:55 -05:00
Goober5000
ae89ed2b9d
convert some instances of frand_range to Random::next
...
Some of the `frand_range` calls were used for integer calculations, so we can use `Random::next` now.
This also reduces the number of C-style casts in the codebase.
2023-11-06 01:48:29 -05:00
JohnAFernandez
2cb12b8ff7
Merge pull request #5593 from MjnMixael/rank_display_names
...
Rank display name and title
2023-11-03 14:34:55 -04:00
JohnAFernandez
c30559a63a
Merge pull request #5698 from Goober5000/waypoints_upgrade
...
Waypoints upgrade
2023-11-02 19:24:55 -04:00
Goober5000
02669338e8
C++ casts
2023-11-01 10:03:51 -04:00
JohnAFernandez
cfe92a4d32
Fix auto copies ( #5738 )
...
* fix inefficient (auto x : container) loops
* Don't make two copies of every element...
* Fix more loops
* Last inefficient auto loops
2023-10-31 13:47:48 -04:00
John Fernandez
bd7429c353
Get rid of Extraneous check
...
Coverity 1523341 is pointing out this check, but shipp->ship_info_index is checked earlier just before we set the shipp pointer on line 1243
2023-10-30 10:56:45 -04:00
Sébastien Noel
f149c36b44
Fix a few typos ( #5598 )
2023-10-24 20:33:45 -04:00
John Fernandez
2bb22a2153
Return to avoid nullptr dereference
...
For coverity 1093461. If this is null, the function is done at this point.
2023-10-23 10:24:13 -04:00
John Fernandez
018c22eee1
Make sure Net_player is not null here
...
For coverity 1093460. Net_player should never be null here, but it is C++ after all.
2023-10-23 10:24:13 -04:00
John Fernandez
6ef60c67ca
Make sure Multi_pxo_channels is not null
...
For coverity 1093458
2023-10-23 10:24:13 -04:00
John Fernandez
982e8d7f85
Add net_player nullptr check
...
Address coverity 1093457 by adding a nullptr check and Assertion. This *should* never happen, but that's what asserts are for, right?
2023-10-23 10:24:13 -04:00
Goober5000
829692b7bd
Merge pull request #5468 from Goober5000/5462_followup
...
additional cleanup from PR 5462
2023-10-22 17:10:42 -04:00
Mike Nelson
ad27664ebc
Pause and Resume voices ( #5636 )
...
* pause and resume voices
* Use newer styling rather than the sound.cpp styling
2023-10-21 10:23:53 -04:00
Goober5000
ee27abf693
make CI happy
2023-10-20 16:23:50 -04:00
JohnAFernandez
7edc5bf842
Change underlying type to avoid endianness problem ( #5680 )
...
Before this change if the wrong endianness was used, the c style cast that was used here would lead to the argument being passed to getsockopt to lack the actual information.
Fixes coverity 1093482
(Directly cast to socklen_t)
2023-10-19 07:56:21 -04:00
mjn-mixael
52b7a3d198
rank display name and title
2023-09-09 10:54:04 -05:00
Goober5000
15daaf2633
additional cleanup from PR 5462
...
Some streamlining and constifying of the readyroom popup list and associated functions.
Followup to #5462 .
2023-07-13 01:54:25 -04:00
Goober5000
1feef8ff2a
improve spawn collision checking
...
Take into account the collision flag and collision groups when spawning a ship. Should fix #5357 .
Also clean up the code a bit, including setting a few `int`s to `bool`s and adding a missing axis case.
2023-04-20 22:31:34 -04:00
Asteroth
31b23d8c50
Whackable debris and asteroids ( #5291 )
...
* whackable debris and asteroids
* fixes
* review tweaks
* some more review tweaks
2023-04-19 10:56:46 -04:00
Asteroth
689dca1f3f
bugfix accidental swap ( #5324 )
2023-04-12 14:55:04 -04:00
Asteroth
ac9636733f
ets fixes ( #5317 )
2023-04-11 06:31:04 +09:00
BMagnu
272d6261c4
Generic Lua Multiplayer RPC ( #4835 )
...
* Add automatic lua obj serialization function dispatch
* Implement fundamental and object de/serialization
* Proper default case for package deserialization
* Add No Multi func
* Add Serialization part
* Fix max encoding size for userdata
* Implement exception handling
* Start Implementing lua RPC
* Prepare waitAsync for RPC
* Add packet order enforcing and forwarding
* Add RPC registry
* Make RPCs callable
* Add waitRPC
* Add serializers
* Fix GCC error
* Explicitly specify lua_net_exception
* Fix Warnings
* Replace Seriliaze fundamental with cross-platform data types
* Appease Clang
* Prevent serialization CTD on invalid objects
* Actually use the temporaries assigned
* Fix OSWPT shadow
* Fix table deserialize order
* Incorporate Feedback
* Fix Warnigs
* ix WArnings 2
* Add sanity checks for OSWPT wing serialization
* Multi Bump
* Forgot we have american-style dates there
2023-03-28 03:07:03 +09:00
Naomi Coffman
fd82ff70f1
Merge all friendly arrival messages into one type
2023-03-11 19:14:14 -05:00
Naomi Coffman
8d1171ae88
Add message types for every standard player order
...
This commit also changes a couple confusing message type names.
2023-03-11 11:39:06 -05:00