I think there's an error in xtrafun.inc:
Code:
stock find_entity(start_from_ent, category, value[]) {
switch (category) {
case target: return find_entity_by_target(start_from_ent, value)
case targetname: return find_ent_by_tname(start_from_ent, value)
}
return find_entity_by_class(start_from_ent, value)
}
should be:
Code:
stock find_entity(start_from_ent, category, value[]) {
switch (category) {
case target: return find_ent_by_target(start_from_ent, value)
case targetname: return find_ent_by_tname(start_from_ent, value)
}
return find_ent_by_class(start_from_ent, value)
}
Without this change xtrafun won't compile. Am I right or did I just hack it in a way to get it to compile?
__________________