Skip to content

Commit

Permalink
Fixed the spaceship launch crash bug in Pitboss games.
Browse files Browse the repository at this point in the history
Fixed a bug in the original BtS code which caused the Pitboss host to
crash whenever a spaceship was launched.   Yay!
  • Loading branch information
karadoc committed May 26, 2012
1 parent 5111f7f commit 5c204fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CvGameCoreDLL/CvPlayer.cpp
Expand Up @@ -21276,7 +21276,11 @@ void CvPlayer::launch(VictoryTypes eVictory)
kTeam.finalizeProjectArtTypes();
kTeam.setVictoryCountdown(eVictory, kTeam.getVictoryDelay(eVictory));

gDLL->getEngineIFace()->AddLaunch(getID());
//gDLL->getEngineIFace()->AddLaunch(getID());
// K-Mod. The spaceship launch causes pitboss to crash
if (!gDLL->IsPitbossHost())
gDLL->getEngineIFace()->AddLaunch(getID());
// K-Mod end.

kTeam.setCanLaunch(eVictory, false);

Expand Down

0 comments on commit 5c204fa

Please sign in to comment.