Diverse kaputte Casts repariert.
Unwirksame und ueberfluessige Casts entfernt,
etwas Code-Cleanup.
Change-Id: I92f01e6391c432cd0881a5faac580f6d0b40c323
diff --git a/secure/login.c b/secure/login.c
index 2da60cc..ab6ee16 100644
--- a/secure/login.c
+++ b/secure/login.c
@@ -260,7 +260,7 @@
{
string res;
- res = (string)master()->QuerySBanished(query_ip_number(this_object()));
+ res = ({string})master()->QuerySBanished(query_ip_number(this_object()));
if (!res)
{
// check connection from Tor exit node
@@ -411,7 +411,7 @@
for ( i = sizeof(user = users() - ({ 0, this_object() })); i--; )
if ( object_name(user[i])[0..12] == "/secure/login" &&
- ((string)user[i]->loginname()) == loginname ){
+ (({string})user[i]->loginname()) == loginname ){
write( "Eine Anmeldung fuer diesen Namen laeuft bereits.\n" );
destruct( this_object() );
return;
@@ -434,7 +434,7 @@
}
- if ( (txt = (string)master()->QueryBanished(loginname)) ){
+ if ( (txt = ({string})master()->QueryBanished(loginname)) ){
if ( txt != "Dieser Name ist gesperrt." )
txt = sprintf("Hoppla - dieser Name ist reserviert oder gesperrt "
"(\"gebanisht\")!\nGrund: %s\n",txt);
@@ -483,7 +483,7 @@
return;
}
- if ( (int)master()->check_late_player(loginname) )
+ if ( ({int})master()->check_late_player(loginname) )
{
write( "Dieser Spieler hat uns leider fuer immer verlassen.\n" );
loginname = "logon";
@@ -492,7 +492,7 @@
return;
}
- if ( txt = (string)master()->QueryTBanished(loginname) ){
+ if ( txt = ({string})master()->QueryTBanished(loginname) ){
write( txt );
loginname = "logon";
input_to( "logon2", INPUT_PROMPT,
@@ -826,7 +826,7 @@
}
if ( guestflag ){
- if ( catch(guestflag = (int)GUESTMASTER->new_guest();publish)
+ if ( catch(guestflag = ({int})GUESTMASTER->new_guest();publish)
|| !guestflag ){
write( "Derzeit ist kein Gastlogin moeglich!\n" );
destruct( this_object() );
@@ -891,7 +891,7 @@
/* Now reconnect to the old body */
exec( ob, this_object() );
ob->set_realip(realip);
- if ( ((int)ob->QueryProp(P_LEVEL)) == -1 )
+ if ( (({int})ob->QueryProp(P_LEVEL)) == -1 )
ob->start_player( cap_name );
else
ob->Reconnect( was_interactive );