diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-11-30 15:43:12 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-05 15:02:46 -0800 |
commit | 266f7b4ac45f546e55774ccba57b0ed2525d1eb2 (patch) | |
tree | b865e1800a243348559529c3c71c845153d0ce13 /src/map/magic-stmt.cpp | |
parent | 0ea504c7b77c7d2e3efabc4678fcd396fbeec083 (diff) | |
download | tmwa-266f7b4ac45f546e55774ccba57b0ed2525d1eb2.tar.gz tmwa-266f7b4ac45f546e55774ccba57b0ed2525d1eb2.tar.bz2 tmwa-266f7b4ac45f546e55774ccba57b0ed2525d1eb2.tar.xz tmwa-266f7b4ac45f546e55774ccba57b0ed2525d1eb2.zip |
Change some unused int returns to void
Also clean up a little formatting in script.cpp
This is what passes for "minimally invasive" in tmwa ...
Diffstat (limited to 'src/map/magic-stmt.cpp')
-rw-r--r-- | src/map/magic-stmt.cpp | 16 |
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 |