|
From: <w_h...@us...> - 2018-01-21 09:52:10
|
Revision: 5115
http://sourceforge.net/p/civ4mods/code/5115
Author: w_hawkwood
Date: 2018-01-21 09:52:08 +0000 (Sun, 21 Jan 2018)
Log Message:
-----------
Fixed a couple of python errors that are thrown when trying to start a pitboss game. Unfortunately doesn't fix the pitboss crash, and I'm all out of python errors to fix with it. :-(
Modified Paths:
--------------
realism/bts/trunk/mod/Assets/Python/EntryPoints/CvAppInterface.py
realism/bts/trunk/mod/Assets/Python/Screens/CvTechChooser.py
Modified: realism/bts/trunk/mod/Assets/Python/EntryPoints/CvAppInterface.py
===================================================================
--- realism/bts/trunk/mod/Assets/Python/EntryPoints/CvAppInterface.py 2018-01-19 22:09:25 UTC (rev 5114)
+++ realism/bts/trunk/mod/Assets/Python/EntryPoints/CvAppInterface.py 2018-01-21 09:52:08 UTC (rev 5115)
@@ -71,8 +71,9 @@
import CvScreensInterface
# MOD - START - Graphical Paging
- resX, x, resY = UserProfile.getResolutionString(UserProfile.getResolution()).split(' ')
- gc.getGame().setResolution(int(resX), int(resY))
+ if not CyGame().isPitbossHost():
+ resX, x, resY = UserProfile.getResolutionString(UserProfile.getResolution()).split(' ')
+ gc.getGame().setResolution(int(resX), int(resY))
# MOD - END - Graphical Paging
if not CyGame().isPitbossHost():
Modified: realism/bts/trunk/mod/Assets/Python/Screens/CvTechChooser.py
===================================================================
--- realism/bts/trunk/mod/Assets/Python/Screens/CvTechChooser.py 2018-01-19 22:09:25 UTC (rev 5114)
+++ realism/bts/trunk/mod/Assets/Python/Screens/CvTechChooser.py 2018-01-21 09:52:08 UTC (rev 5115)
@@ -136,6 +136,9 @@
self.graph.refresh()
def updatePlayerContext(self):
+ if (CyGame().isPitbossHost()):
+ return
+
self.m_eSelectedTech = -1
self.clear()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|