mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -04:00
Fix crash if server sends multiple LevelInit packets with differing map volumes (Thanks minoclub + venksociety)
This commit is contained in:
parent
cea4e26ad1
commit
8aea1d413c
@ -468,7 +468,10 @@ static void Classic_StartLoading(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Classic_LevelInit(cc_uint8* data) {
|
static void Classic_LevelInit(cc_uint8* data) {
|
||||||
if (!map_begunLoading) Classic_StartLoading();
|
/* in case server is buggy and sends LevelInit multiple times */
|
||||||
|
if (map_begunLoading) return;
|
||||||
|
|
||||||
|
Classic_StartLoading();
|
||||||
if (!cpe_fastMap) return;
|
if (!cpe_fastMap) return;
|
||||||
|
|
||||||
/* Fast map puts volume in header, and uses raw DEFLATE without GZIP header/footer */
|
/* Fast map puts volume in header, and uses raw DEFLATE without GZIP header/footer */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user