mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Fix crashing if you were disconnected from /hackrank,kick,or ban, and you then tried to resize game window on Direct3D9 backend (Thanks Devin)
This commit is contained in:
parent
e181c3ef84
commit
b6f8d739cf
@ -1433,10 +1433,11 @@ static void DisconnectScreen_ReconnectMessage(struct DisconnectScreen* s, String
|
||||
int secsLeft = (DISCONNECT_DELAY_MS - elapsedMS) / MILLIS_PER_SEC;
|
||||
|
||||
if (secsLeft > 0) {
|
||||
String_Format1(msg, "Reconnect in %i", &secsLeft); return;
|
||||
String_Format1(msg, "Reconnect in %i", &secsLeft);
|
||||
} else {
|
||||
String_AppendConst(msg, "Reconnect");
|
||||
}
|
||||
}
|
||||
String_AppendConst(msg, "Reconnect");
|
||||
}
|
||||
|
||||
static void DisconnectScreen_UpdateDelayLeft(struct DisconnectScreen* s, double delta) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user