Typecast-Fixes aufgrund von strict_types
Change-Id: I88dbda30bc814607dc771f4e96d78c0e1773ae9d
diff --git a/std/clothing/wear.c b/std/clothing/wear.c
index 69cb54f..742b813 100644
--- a/std/clothing/wear.c
+++ b/std/clothing/wear.c
@@ -427,7 +427,7 @@
//Behinderung beim Wechsel nur fuer Spieler
if (query_once_interactive(PL)) {
({int*})PL->SetProp(P_LAST_WEAR_ACTION,({WA_UNWEAR,time()}));
- if (({int})PL->InFight()) {
+ if (({int})PL->InFight()) {
({int})PL->SetProp(P_ATTACK_BUSY,1);
}
}
@@ -455,7 +455,7 @@
}
// Vielleicht darf der Spieler ja gar nix mehr anziehen.
- if (({int})PL->InFight()) {
+ if (({object})PL->InFight()) {
last=({int*})PL->QueryProp(P_LAST_WEAR_ACTION);
if (pointerp(last) && (last[0]==WA_UNWEAR) && ((time()-last[1])<2)) {
notify_fail("Du hast doch gerade erst etwas ausgezogen!\n"
diff --git a/std/pile.c b/std/pile.c
index 4f58d50..7464f5a 100644
--- a/std/pile.c
+++ b/std/pile.c
@@ -72,7 +72,7 @@
protected void NotifyMove(object dest, object oldenv, int method) {
if( query_once_interactive(dest)) {
log_file( "PILE.log", dtime(time()) + ": pile in "
- + dest->query_real_name() + " gelandet.\n" );
+ + ({string})dest->query_real_name() + " gelandet.\n" );
}
if( living(dest) ) {
filter_objects( all_inventory(), "move", dest, M_SILENT | M_NOCHECK );
@@ -116,7 +116,7 @@
::reset();
// wenn nur noch unsichtbare items im Haufen: aufloesen
if (!sizeof(filter(all_inventory(), function int (object o)
- { return stringp(o->short());} )))
+ { return stringp(({string})o->short());} )))
remove(1);
}