X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmonsters%2Fmonsters.qc;h=096c2e5ea43a864874c37b9ce437215f8ae95e88;hp=67e176cf26395b6001ca42c7090fbade0bf5040d;hb=13a3ce5cdf01a322755b2f0e74d168cd5247d789;hpb=0b487b67c34cc94b503c72f09eb77463891a00e8 diff --git a/qcsrc/common/monsters/monsters.qc b/qcsrc/common/monsters/monsters.qc index 67e176cf26..096c2e5ea4 100644 --- a/qcsrc/common/monsters/monsters.qc +++ b/qcsrc/common/monsters/monsters.qc @@ -1,10 +1,12 @@ +#include "monsters.qh" + #include "all.qh" // MONSTER PLUGIN SYSTEM entity monster_info[MON_MAXCOUNT]; entity dummy_monster_info; -void register_monster(float id, float(float) func, float monsterflags, vector min_s, vector max_s, string modelname, string shortname, string mname) +void register_monster(int id, float(float) func, int monsterflags, vector min_s, vector max_s, string modelname, string shortname, string mname) { entity e; monster_info[id - 1] = e = spawn(); @@ -33,7 +35,7 @@ void register_monsters_done() dummy_monster_info.maxs = '0 0 0'; dummy_monster_info.model = ""; } -entity get_monsterinfo(float id) +entity get_monsterinfo(int id) { entity m; if(id < MON_FIRST || id > MON_LAST)