cleaning up cubescript hooks

- provide a function to easily assemble and execute the command
- context-selective execution of hooks
- restrict potentially exploitable or harmful hooks to singleplayer-modes
This commit is contained in:
ac-stef
2014-11-12 17:06:35 +01:00
parent 41fd31deed
commit 8604c198e9
10 changed files with 48 additions and 109 deletions
+1 -1
View File
@@ -1238,7 +1238,7 @@ int main(int argc, char **argv)
exec("config/defaults.cfg");
firstrun = true;
}
if(identexists("afterinit")) execute("afterinit");
exechook(HOOK_SP_MP, "afterinit", "");
if(compatibilitymode)
{
per_idents = false;