From: <hel...@us...> - 2009-09-21 00:11:30
|
Revision: 12562 http://vegastrike.svn.sourceforge.net/vegastrike/?rev=12562&view=rev Author: hellcatv Date: 2009-09-21 00:11:21 +0000 (Mon, 21 Sep 2009) Log Message: ----------- make adjust relation use the delta rather than setting the relationship to an absolute point on ship destruction Modified Paths: -------------- trunk/vegastrike/src/cmd/ai/comm_ai.cpp Modified: trunk/vegastrike/src/cmd/ai/comm_ai.cpp =================================================================== --- trunk/vegastrike/src/cmd/ai/comm_ai.cpp 2009-09-08 04:17:12 UTC (rev 12561) +++ trunk/vegastrike/src/cmd/ai/comm_ai.cpp 2009-09-21 00:11:21 UTC (rev 12562) @@ -101,7 +101,7 @@ }else { delta = adj; } - UniverseUtil::adjustRelationModifierInt(cp, faction, minrel-relation); + UniverseUtil::adjustRelationModifierInt(cp, faction, delta); } for (un_iter i=_Universe->activeStarSystem()->getUnitList().createIterator(); (ally = *i)!=NULL; |