no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@371 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -211,7 +211,6 @@ extern void preload_mapmodels();
|
||||
|
||||
void load_world(char *mname) // still supports all map formats that have existed since the earliest cube betas!
|
||||
{
|
||||
loadingscreen();
|
||||
preparectf(true);
|
||||
stopifrecording();
|
||||
cleardlights();
|
||||
@@ -219,6 +218,7 @@ void load_world(char *mname) // still supports all map formats that have
|
||||
setnames(mname);
|
||||
gzFile f = gzopen(cgzname, "rb9");
|
||||
if(!f) { conoutf("could not read map %s", (int)cgzname); return; };
|
||||
loadingscreen();
|
||||
gzread(f, &hdr, sizeof(header)-sizeof(int)*16);
|
||||
endianswap(&hdr.version, sizeof(int), 4);
|
||||
if(strncmp(hdr.head, "CUBE", 4)!=0 && strncmp(hdr.head, "ACMP",4)!=0) fatal("while reading map: header malformatted");
|
||||
|
||||
Reference in New Issue
Block a user