summaryrefslogtreecommitdiff
path: root/src/map/magic-stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/magic-stmt.cpp')
-rw-r--r--src/map/magic-stmt.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/magic-stmt.cpp b/src/map/magic-stmt.cpp
index 5dd51d7..2fcf60c 100644
--- a/src/map/magic-stmt.cpp
+++ b/src/map/magic-stmt.cpp
@@ -1027,7 +1027,8 @@ static cont_activation_record_t *add_stack_entry (invocation_t * invocation,
return ar;
}
-static int find_entities_in_area_c (entity_t * target, va_list va)
+static
+void find_entities_in_area_c (entity_t * target, va_list va)
{
int *entities_allocd_p = va_arg (va, int *);
int *entities_nr_p = va_arg (va, int *);
@@ -1063,7 +1064,7 @@ static int find_entities_in_area_c (entity_t * target, va_list va)
invoc = invoc->next_invocation;
}
}
- return 0;
+ return;
case BL_MOB:
if (filter == FOREACH_FILTER_MOB
@@ -1071,7 +1072,7 @@ static int find_entities_in_area_c (entity_t * target, va_list va)
|| filter == FOREACH_FILTER_TARGET)
break;
else
- return 0;
+ return;
case BL_SPELL:
if (filter == FOREACH_FILTER_SPELL)
@@ -1080,26 +1081,25 @@ static int find_entities_in_area_c (entity_t * target, va_list va)
/* Check whether the spell is `bound'-- if so, we'll consider it iff we see the caster (case BL_PC). */
if (invocation->flags & INVOCATION_FLAG_BOUND)
- return 0;
+ return;
else
break; /* Add the spell */
}
else
- return 0;
+ return;
case BL_NPC:
if (filter == FOREACH_FILTER_NPC)
break;
else
- return 0;
+ return;
default:
- return 0;
+ return;
}
ADD_ENTITY (target->id);
#undef ADD_ENTITY
- return 0;
}
static void