Unwirksame Casts repariert.
Change-Id: I0e02679abe6e0918f9a04658f0d25268e8e4488b
diff --git a/std/lightsource.c b/std/lightsource.c
index 37828b7..129121d 100644
--- a/std/lightsource.c
+++ b/std/lightsource.c
@@ -126,10 +126,10 @@
env->_set_last_content_change();
call_time = (fuel < CALL_OUT_TIME)? fuel : CALL_OUT_TIME ;
call_out( "out_of_fuel", call_time ) ;
- if( (int)PL->QueryProp(P_PLAYER_LIGHT) == 1 )
+ if( ({int})PL->QueryProp(P_PLAYER_LIGHT) == 1 )
write( "Du kannst wieder etwas sehen.\n" ) ;
else write( "Ok.\n" ) ;
- say((string)PL->Name(WER)
+ say(({string})PL->Name(WER)
+ " zuendet " + name( WEN, 0 ) + " an.\n" ) ;
return TRUE ;
@@ -172,17 +172,16 @@
//
// Tiamak
env->_set_last_content_change();
- if ( this_player()->QueryProp(P_PLAYER_LIGHT) == 0 )
+ if ( ({int})this_player()->QueryProp(P_PLAYER_LIGHT) == 0 )
{
write( "Es wird dunkel.\n" ) ;
- say((string)PL->Name(WER)
- + " macht das Licht aus.\n" ) ;
+ say(({string})PL->Name(WER) + " macht das Licht aus.\n" ) ;
}
else
{
write( "Ok.\n" ) ;
- say((string)PL->Name(WER)
- + " loescht " + name( WEN, 0 ) + " aus.\n" ) ;
+ say(({string})PL->Name(WER) + " loescht " + name( WEN, 0 )
+ + " aus.\n" ) ;
}
if( fuel <= 0 ) test_remove() ;