Kolja Strohm 6 lat temu
rodzic
commit
540b64b0c9
3 zmienionych plików z 18 dodań i 4 usunięć
  1. 2 2
      EditorServer/EditorServer.cpp
  2. 1 1
      EditorServer/KarteEditor.cpp
  3. 15 1
      build.bat

+ 2 - 2
EditorServer/EditorServer.cpp

@@ -904,8 +904,8 @@ void EdSKlient::thread()
 void EdSKlient::errorZuKlient( const char *nachricht ) const // sendet eine Fehlernachricht zum Klient
 {
     klient->sendeEncrypted( "\3", 1 );
-    char len = (char)textLength( nachricht );
-    klient->sendeEncrypted( &len, 1 );
+    unsigned char len = (unsigned char)textLength( nachricht );
+    klient->sendeEncrypted( (char*)&len, 1 );
     klient->sendeEncrypted( nachricht, len );
 }
 

+ 1 - 1
EditorServer/KarteEditor.cpp

@@ -620,7 +620,7 @@ bool KarteEditor::prozessMessage( SKlient *zKlient )
             return 0;
         }
         zKlient->sendeEncrypted( "\1", 1 );
-        Text p = pf.getText();
+        Text p = pfad->getText();
         p += "/live";
         editor->setPfad( p );
         editor->open();

+ 15 - 1
build.bat

@@ -1,2 +1,16 @@
+:DebugLinux64
+SET RETURN=DebugLinux64
+SET NEXT=ReleaseLinux64
 "D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Editor Server.sln" /t:rebuild /p:configuration=debug /p:platform=x64
-"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Editor Server.sln" /t:rebuild /p:configuration=release /p:platform=x64
+if errorlevel 1 GOTO Error
+:ReleaseLinux64
+SET RETURN=ReleaseLinux64
+SET NEXT=End
+"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Editor Server.sln" /t:rebuild /p:configuration=release /p:platform=x64
+if errorlevel 1 GOTO Error
+GOTO End
+:Error
+SET /p redo=Nochmal versuchen?(j/n):
+IF /I '%redo%' equ 'j' GOTO %RETURN%
+GOTO %NEXT%
+:End