[3.13] SDK Fix for Spies being displaced on war declarations

Bhruic

Emperor
Joined
Nov 15, 2005
Messages
1,457
File: CvUnit.cpp
Function: CvUnit::verifyStackValid
Line: 12451
Replace:
Code:
	if (plot()->isVisibleEnemyUnit(this))
With:
Code:
	if (plot()->isVisibleEnemyUnit(this) && !isSpy())

Bh
 
This is really good, I can't believe firaxis omitted it!

P.S. Although it's line 12451 for me.
 
Why is spy being returned by isVisibleEnemyUnit? That seems like the actual problem (strictly based on function name :)

They changed the behaviour so that invisible units made visible would be bumped, and I bet that screwed up that function.
 
No, the spy isn't being returned by that. That check is whether there is a visible enemy unit on the square the spy is on (ie, an enemy to the player).

Bh
 
Top Bottom