fixing the absence of message for official maps with different version, include a tolerant system to disrupt the players who reconnect on purpose (to avoid death or to go back to base faster), and removing some tabs/comments (please, flowtron... do not use tabs! use spaces to indent! four spaces please!)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5761 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-10-16 19:30:36 +00:00
parent 5398645eb0
commit 9c8ee2b555
5 changed files with 47 additions and 27 deletions
-6
View File
@@ -370,14 +370,8 @@ void save_world(char *mname)
toptimize();
setnames(mname);
backup(cgzname, bakname);
// MediaPacks (flowtron) 2009oct07
// - check map dependencies and
// set the appropriate value (NULL, "-1" or "A,B,C,...")
// in the header
checkmapdependencies(true);
copystring(hdr.mediareq, reqmpak, 128);
// ?? output? IIRC I did some somewhere .. 2010apr02
// :: -- - MediaPack - -- --- ----
stream *f = opengzfile(cgzname, "wb");
if(!f) { conoutf("could not write map to %s", cgzname); return; }
hdr.version = MAPVERSION;