MP Trades - possible bug fix

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,729
Location
Near Portsmouth, UK
I don't play MP so have no way to test this ... so if someone could check this out and report back ...

Possible bug fix for when one human player offers a trade and the other human player can change it anyhow they want and accept it.

In TradeLogic.lua, add the lines in red

Code:
---------------------------------------------------------
-- UI Deal was modified somehow
---------------------------------------------------------
function DoUIDealChangedByHuman()
  --print("UI Deal Changed");
    
  -- Set state to the default so that it doesn't cause any funny behavior later
  if (g_iDiploUIState ~= DiploUIStateTypes.DIPLO_UI_STATE_HUMAN_DEMAND) then
    g_iDiploUIState = DiploUIStateTypes.DIPLO_UI_STATE_TRADE;
  end
  
  DoUpdateButtons();

[COLOR="Red"]  if (g_bPVPTrade) then
    g_bNewDeal = true;
  end[/COLOR]
end
 
Back
Top Bottom