• R/O
  • SSH

zandronum-zdoom-sync: Commit


Commit MetaInfo

Revision5888ff02905b8d1a003d457b871d8d154363443d (tree)
Time2019-03-25 05:43:01
AuthorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

fixed a compiler dependent compile problem

Change Summary

Incremental Difference

diff -r 40fcc310dc12 -r 5888ff02905b src/sv_main.cpp
--- a/src/sv_main.cpp Sun May 20 14:22:40 2018 +0200
+++ b/src/sv_main.cpp Sun Mar 24 21:43:01 2019 +0100
@@ -6438,8 +6438,8 @@
64386438 if ( sv_cheats )
64396439 {
64406440 PClassActor *pClass = PClass::FindActor(pszMorphClass);
6441- const char *msg = pClass->IsKindOf(RUNTIME_CLASS(PClassPlayerPawn)) ? cht_Morph (players + g_lCurrentClient, static_cast<PClassPlayerPawn *>(pClass), false) : '\0';
6442- FString messageString = *msg != '\0' ? msg : "Morph failed.";
6441+ const char *msg = pClass->IsKindOf(RUNTIME_CLASS(PClassPlayerPawn)) ? cht_Morph (players + g_lCurrentClient, static_cast<PClassPlayerPawn *>(pClass), false) : nullptr;
6442+ FString messageString = ( ( msg != nullptr ) && ( *msg != '\0' ) ) ? msg : "Morph failed.";
64436443 SERVER_PrintfPlayer( g_lCurrentClient, "%s", messageString.GetChars() );
64446444 }
64456445 // If not, boot their ass!
Show on old repository browser