git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@28 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2005-08-14 17:49:15 +00:00
parent a1bba487b4
commit f31e26c5d3
19 changed files with 1200 additions and 2361 deletions
+2 -12
View File
@@ -37,16 +37,7 @@ void settag(int tag, int type) // set all cubes with "tag" to space, if
};
void resettagareas() { settag(0, 0); }; // reset for editing or map saving
// Modified by Rick
//void settagareas() { settag(0, 1); loopv(ents) if(ents[i].type==TRIGGER) setspawn(i, true); }; // set for playing
void settagareas() // set for playing
{
settag(0, 1);
loopv(ents) if(ents[i].type==TRIGGER) setspawn(i, true);
if(ishost()) BotManager.PickNextTrigger();
};
// End mod
void settagareas() { settag(0, 1); loopv(ents) if(ents[i].type==CARROT) setspawn(i, true); }; // set for playing
void trigger(int tag, int type, bool savegame)
{
@@ -316,8 +307,7 @@ void empty_world(int factor, bool force) // main empty world creation routine
s->defer = 0;
};
//strncpy(hdr.head, "CUBE", 4);
strncpy(hdr.head, "ACMP", 4);
strncpy(hdr.head, "CUBE", 4);
hdr.version = MAPVERSION;
hdr.headersize = sizeof(header);
hdr.sfactor = sfactor;