mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-24 12:31:45 +01:00
Addressed warnings from -Weverything subset:
-Wconditional-uninitialized -Wshadow -Wswitch-enum -Wunreachable-code-break -Wunused-macros
This commit is contained in:
@@ -285,7 +285,6 @@ int entry_mtrigger(char_data *ch)
|
||||
for (t = TRIGGERS(SCRIPT(ch)); t; t = t->next) {
|
||||
if (TRIGGER_CHECK(t, MTRIG_ENTRY) && (rand_number(1, 100) <= GET_TRIG_NARG(t))){
|
||||
return script_driver(&ch, t, MOB_TRIGGER, TRIG_NEW);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1134,7 +1133,6 @@ int drop_wtrigger(obj_data *obj, char_data *actor)
|
||||
return 0;
|
||||
else
|
||||
return ret_val;
|
||||
break;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user