Zandronum Chat on our Discord Server Get the latest version: 3.2.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004156Zandronum[All Projects] Suggestionpublic2023-08-25 07:342025-10-12 06:02
ReporterPenguin 
Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
StatusclosedResolutionno change required 
PlatformPCOSMicrosoft Windows 11OS Version22H2
Product Version3.1 
Target VersionFixed in Version 
Summary0004156: Make GameType() calls in Coop (multiplayer emulation) return GAME_NET_COOPERATIVE instead of returning GAME_SINGLE_PLAYER.
DescriptionSince it returns GAME_SINGLE_PLAYER, coop can't distinguish between singleplayer and multiplayer emulation.
Additional InformationThis 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
}
Attached Files

- Relationships
related to 0002158new GameType() returns incorrect values for some gametypes. 

-  Notes
User avatar (0024581)
Ru5tK1ng (updater)
2025-10-12 06:02

It already does and did in 3.1. GameType() will check for NETWORK_GetState() != NETSTATE_SINGLE and then assign GAME_NET_COOPERATIVE. When multiplayer emulation is turned on, the netstate becomes NETSTATE_SINGLE_MULTIPLAYER which obviously is not the same as NETSTATE_SINGLE.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2023-08-25 07:34 Penguin New Issue
2023-08-25 12:11 WaTaKiD Relationship added related to 0002158
2025-10-12 06:02 Ru5tK1ng Note Added: 0024581
2025-10-12 06:02 Ru5tK1ng Status new => closed
2025-10-12 06:02 Ru5tK1ng Resolution open => no change required






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker