startmapalways (testing)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5271 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -874,7 +874,7 @@ void startmap(const char *name, bool reset) // called just after a map load
|
||||
persistidents = true;
|
||||
firstrun = false;
|
||||
}
|
||||
// execute mapstart event
|
||||
// execute mapstart event once
|
||||
const char *mapstartonce = getalias("mapstartonce");
|
||||
if(mapstartonce && mapstartonce[0])
|
||||
{
|
||||
@@ -882,6 +882,12 @@ void startmap(const char *name, bool reset) // called just after a map load
|
||||
// BTW: in v1.0.4 sleep 1 was required to make it work on initial mapload [flowtron:2010jun25]
|
||||
alias("mapstartonce", "");
|
||||
}
|
||||
// execute mapstart event
|
||||
const char *mapstartalways = getalias("mapstartalways");
|
||||
if(mapstartalways && mapstartalways[0])
|
||||
{
|
||||
addsleep(0, mapstartalways);
|
||||
}
|
||||
}
|
||||
|
||||
void suicide()
|
||||
|
||||
Reference in New Issue
Block a user