Import Improved Breakdowns patch

Fix trailing whitespace

http://www.tt-forums.net/viewtopic.php?p=1146419#p1146419
This commit is contained in:
patch-import
2015-08-02 22:58:41 +01:00
committed by Jonathan G Rennison
parent c8a727d3fc
commit 9f5164b403
24 changed files with 761 additions and 84 deletions

View File

@@ -362,6 +362,7 @@ static bool DisasterTick_Ufo(DisasterVehicle *v)
uint dist = Delta(v->x_pos, u->x_pos) + Delta(v->y_pos, u->y_pos);
if (dist < TILE_SIZE && !(u->vehstatus & VS_HIDDEN) && u->breakdown_ctr == 0) {
u->breakdown_type = BREAKDOWN_CRITICAL;
u->breakdown_ctr = 3;
u->breakdown_delay = 140;
}
@@ -547,6 +548,7 @@ static bool DisasterTick_Big_Ufo(DisasterVehicle *v)
if (Delta(target->x_pos, v->x_pos) + Delta(target->y_pos, v->y_pos) <= 12 * (int)TILE_SIZE) {
target->breakdown_ctr = 5;
target->breakdown_delay = 0xF0;
target->breakdown_type = BREAKDOWN_CRITICAL;
}
}
}