Procházet zdrojové kódy

fix compiler errors

Kolja Strohm před 3 roky
rodič
revize
244922f1d3

+ 1 - 1
Asteroids/Spiel/Spieler/Spieler.cpp

@@ -16,7 +16,7 @@ Spieler::Spieler( KSGClient::InformationServerClient *zInfoK, UIInit &uiFactory,
     sNum = zStr->id;
     farbe = 0;
     zteam = 0;
-    info = zInfoK->getThis();
+    info = dynamic_cast<KSGClient::InformationServerClient *>( zInfoK->getThis() );
     name = 0;
     for( int i = 0; i < T_MAX; i++ )
         tastatur[ i ] = 0;

+ 1 - 1
Asteroids/SpielStatistik/Chat/StatistikChat.cpp

@@ -302,7 +302,7 @@ StatistikChat::StatistikChat( int eigeneId, KSGClient::SpielServerClient *spielc
     nachricht( initTextFeld( 10, 450, 575, 20, uiFactory, TextFeld::Style::TextFeld, "" ) ),
     senden( initKnopf( 590, 450, 20, 20, uiFactory, 0, "" ) ),
     verlassen( initKnopf( 630, 450, 130, 20, uiFactory, Knopf::Style::Sichtbar, "Verlassen" ) ),
-    spielerListe( new ChatListe( eigeneId, infoc->getThis(), uiFactory, bilder, addChat, addFreund, accountAnsehen, nachrichtParam ) ),
+    spielerListe( new ChatListe( eigeneId, dynamic_cast<KSGClient::InformationServerClient *>( infoc->getThis() ), uiFactory, bilder, addChat, addFreund, accountAnsehen, nachrichtParam ) ),
     beenden( 0 )
 {
     Bild *sendenBild = bilder->get( "data/client/bilder/chat.ltdb/senden.png" );

+ 1 - 1
Asteroids/SpielStatistik/SpielStatistik.cpp

@@ -239,7 +239,7 @@ void SpielStatistik::nachricht( int l
     case 2: // Ladevorgang abgeschlossen
         if( 1 )
         {
-            chat = new StatistikChat( accountId, spielc->getThis(), infoc->getThis(), uiFactory, bilder, addNachrichtF, addChatF, addFreundF, accountAnsehenF, nachrichtParam );
+            chat = new StatistikChat( accountId, dynamic_cast<KSGClient::SpielServerClient *>( spielc->getThis() ), dynamic_cast<KSGClient::InformationServerClient *>( infoc->getThis() ), uiFactory, bilder, addNachrichtF, addChatF, addFreundF, accountAnsehenF, nachrichtParam );
             int anz = gss->getEintragAnzahl();
             for( int i = 0; i < anz; i++ )
             {