v1.61 Techchooser promotions glitch

The Great Apple

Big Cheese
Joined
Mar 24, 2002
Messages
3,361
Location
Oxford, England
At present, if you have more than one promotion being enabled with a tech, only the final promotion shows.

This is because of a typo in CvTechChooser.py

Code:
# Promotion Info
for j in range( gc.getNumPromotionInfos() ):
	if ( gc.getPromotionInfo(j).getTechPrereq() == i ):
		szPromotionButton = "Promotion" + str([B]i[/B])
		screen.addDDSGFCAt( szPromotionButton, "TechList", gc.getPromotionInfo(j).getButton(), iX + fX, iY + Y_ROW, TEXTURE_SIZE, TEXTURE_SIZE, WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROMOTION, j, -1, False )
		fX += X_INCREMENT
should read
Code:
# Promotion Info
for j in range( gc.getNumPromotionInfos() ):
	if ( gc.getPromotionInfo(j).getTechPrereq() == i ):
		szPromotionButton = "Promotion" + str([B]j[/B])
		screen.addDDSGFCAt( szPromotionButton, "TechList", gc.getPromotionInfo(j).getButton(), iX + fX, iY + Y_ROW, TEXTURE_SIZE, TEXTURE_SIZE, WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROMOTION, j, -1, False )
		fX += X_INCREMENT

Originial thread: http://forums.civfanatics.com/showthread.php?t=163835
 
Back
Top Bottom