Fixed xtrafun include

This commit is contained in:
David Anderson 2004-03-16 05:21:42 +00:00
parent 398773849c
commit 6a10397641

View File

@ -65,7 +65,7 @@ stock get_grenade_index(index, model[], len, grenadeindex = 0) {
new entowner = index new entowner = index
for (;;) { for (;;) {
entfind = find_entity_by_class(entfind, "grenade") entfind = find_ent_by_class(entfind, "grenade")
if (entfind && is_valid_ent(entfind)) { if (entfind && is_valid_ent(entfind)) {
if (entity_get_edict(entFind, EV_ENT_owner) == entowner) { if (entity_get_edict(entFind, EV_ENT_owner) == entowner) {
@ -96,7 +96,7 @@ enum {
* "targetname", value is the name you are searching for */ * "targetname", value is the name you are searching for */
stock find_entity(start_from_ent, category, value[]) { stock find_entity(start_from_ent, category, value[]) {
switch (category) { switch (category) {
case target: return find_entity_by_target(start_from_ent, value) case target: return find_ent_by_target(start_from_ent, value)
case targetname: return find_ent_by_tname(start_from_ent, value) case targetname: return find_ent_by_tname(start_from_ent, value)
} }
return find_entity_by_class(start_from_ent, value) return find_entity_by_class(start_from_ent, value)