summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script.c')
-rw-r--r--src/emap/script.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 56c22b8..39b3d87 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -916,26 +916,6 @@ BUILDIN(setNpcSex)
nd = npc->name2id (script_getstr(st, 2));
sex = script_getnum(st, 3);
}
- else if (script_hasdata(st, 2))
- {
- sex = script_getnum(st, 2);
- }
- else
- {
- ShowWarning("no parameters provided\n");
- script->reportsrc(st);
- return false;
- }
-
- if (!nd && !st->oid)
- {
- ShowWarning("npc not found\n");
- script->reportsrc(st);
- return false;
- }
-
- if (!nd)
- nd = (TBL_NPC *) map->id2bl(st->oid);
if (!nd || !nd->vd)
{