case GameMessage::MSG_CHEAT_ADD_CASH:
{
if ( !TheGameLogic->isInMultiplayerGame() )
{
Player *localPlayer = ThePlayerList->getLocalPlayer();
Money *money = localPlayer->getMoney();
money->deposit( 10000 );
TheInGameUI->messageNoFormat( TheGameText->FETCH_OR_SUBSTITUTE("GUI:DebugAddCash", L"Add Cash") );
}
break;
}
MSG_CHEAT_ADD_CASH is the only cheat case in this block that does not set disp = DESTROY_MESSAGE after acting. Without it the message continues propagating through the pipeline when not in multiplayer; all neighboring cases (MSG_CHEAT_INSTANT_BUILD, MSG_CHEAT_GIVE_ALL_SCIENCES, etc.) consistently destroy the message.
MSG_CHEAT_ADD_CASHis the only cheat case in this block that does not setdisp = DESTROY_MESSAGEafter acting. Without it the message continues propagating through the pipeline when not in multiplayer; all neighboring cases (MSG_CHEAT_INSTANT_BUILD,MSG_CHEAT_GIVE_ALL_SCIENCES, etc.) consistently destroy the message.