Created attachment 2349[details]
only forward commands when CS_ACTIVE (from Lakitu7)
Under certain circumstances, client commands still get forwarded to the game for clients that are no longer "connected". This is was not expected and caused a few crashes in Tremulous, and might affect other ioq3-based projects.
Comment 1Zachary J. Slater
2010-10-25 02:47:33 EDT
This seems to regress single player Team Arena team games, in which the player joins a team before becoming ACTIVE (and can't join in the usual way, because the menu option is greyed).
Additionally checking for PRIMED seems to be sufficient; I'm not sure whether CONNECTED should count as connected too, or not.
Patch, which I'll attach in a moment:
http://git.debian.org/?p=users/smcv/ioquake3-upstream.git;a=commitdiff;h=refs/heads/commands-4629
Created attachment 2349 [details] only forward commands when CS_ACTIVE (from Lakitu7) Under certain circumstances, client commands still get forwarded to the game for clients that are no longer "connected". This is was not expected and caused a few crashes in Tremulous, and might affect other ioq3-based projects.
Created attachment 2476 [details] proposed patch (fixes the regression for at least Team Arena)