Added type to SyncIndentifierComparison enum in SyncIdentifier.h in an

attempt to fix a failed call to operator<< in SendResponse()
This commit is contained in:
Sage King 2022-08-07 18:39:07 -06:00
parent 978b6a8724
commit 66276ac61b
3 changed files with 3 additions and 8 deletions

View File

@ -2049,7 +2049,8 @@ void NetPlayServer::AssignNewUserAPad(const Client& player)
{
for (PlayerId& mapping : m_pad_map)
{
if (mapping == Unmapped)
// 0 means unmapped
if (mapping == 0)
{
mapping = player.pid;
break;

View File

@ -103,12 +103,6 @@ private:
AllExcept
};
enum MappedState
{
Unmapped,
Mapped
};
struct AsyncQueueEntry
{
sf::Packet packet;

View File

@ -36,7 +36,7 @@ struct SyncIdentifier
// The order of entries in this enum matters, as the lowest value is
// treated as the "best" available option.
enum class SyncIdentifierComparison
enum class SyncIdentifierComparison : u8
{
SameGame,
DifferentHash,