 |
|  |
 |
|
Immortal Wombat
|
 |
in perpetuity
Dec 2000 time: 05:15
|
|
Very strange This is why I hate SLIC. This is why I love SLIC, and love to hate SLIC, and hate to love SLIC
I guess what to do is fortify it...
code:
HandleEvent(DisbandUnit) 'addpopsinpedrunnscity' pre {
city_t tmpCity;
message(1,'addpops2');
GetCityByLocation(unit[0].location, tmpCity);
if(CityIsValid(tmpCity)){
if ((unit[0].type == UnitDB(UNIT_SEA_ENGINEER))
||(unit[0].type == UnitDB(UNIT_SETTLER))
||(unit[0].type == UnitDB(UNIT_URBAN_PLANNER))) {
AddPops(tmpCity, 1);
message(1,'addpops1');
}
}
}
HandleEvent(DisbandArmyOrder) 'tryagain' pre {
int_t i;
unit_t tmpUnit;
for(i = 0; i < army[0].size; i = i + 1){
GetUnitFromArmy(army[0], i, tmpUnit);
unit[0] = tmpUnit;
if ((unit[0].type == UnitDB(UNIT_SEA_ENGINEER))
||(unit[0].type == UnitDB(UNIT_SETTLER))
||(unit[0].type == UnitDB(UNIT_URBAN_PLANNER))) {
GetCityByLocation(unit[0].location, tmpCity);
if(CityIsValid(tmpCity)){
AddPops(tmpCity, 1);
}
}
}
}
Sorry about the mess, but this should check through any armies you're disbanding too.
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:15. Apolyton Time is 00:15. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|