MantisBT - Zandronum
View Issue Details
0004156Zandronum[All Projects] Suggestionpublic2023-08-25 07:342023-08-25 12:11
Penguin 
 
nonefeatureN/A
newopen 
PCMicrosoft Windows 1122H2
3.1 
 
0004156: Make GameType() calls in Coop (multiplayer emulation) return GAME_NET_COOPERATIVE instead of returning GAME_SINGLE_PLAYER.
Since it returns GAME_SINGLE_PLAYER, coop can't distinguish between singleplayer and multiplayer emulation.
This code works fine if it returns GAME_NET_COOPERATIVE in multiplayer emulation.

if(GameType() == GAME_NET_COOPERATIVE && IsNetworkGame())
{
    // True multiplayer
}
else if(GameType() == GAME_NET_COOPERATIVE && !IsNetworkGame())
{
    // Multiplayer emulation
}
else if(GameType() == GAME_SINGLE_PLAYER)
{
    // Singleplayer
}
else
{
    // Other game modes
}
No tags attached.
related to 0002158new  GameType() returns incorrect values for some gametypes. 
Issue History
2023-08-25 07:34PenguinNew Issue
2023-08-25 12:11WaTaKiDRelationship addedrelated to 0002158

There are no notes attached to this issue.