Rueckgabewert fuer (re)move() in Waffen
Wenn die Waffe nicht weggesteckt werden kann, muss ein entsprechender
Fehlerstatus zurueckgegeben werden und nicht einfach nichts.
Change-Id: I05ce0c95c55038d9ff34f946b74f6c1f75b30957
diff --git a/std/weapon/moving.c b/std/weapon/moving.c
index 95955cd..c345c48 100644
--- a/std/weapon/moving.c
+++ b/std/weapon/moving.c
@@ -25,6 +25,8 @@
DoUnwield( method & (M_SILENT|M_NOCHECK));
if ((method & M_NOCHECK) || (!QueryProp(P_WIELDED)))
return ::move(dest, method );
+ else
+ return ME_DONT_WANT_TO_BE_MOVED;
}
varargs int remove(int silent )
@@ -32,4 +34,6 @@
DoUnwield( silent );
if (!QueryProp(P_WIELDED))
return ::remove( silent );
+ else
+ return 0;
}