Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] Paradropping non-ground units in the sea
Home

[Freeciv-Dev] Paradropping non-ground units in the sea

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Paradropping non-ground units in the sea
From: bart@xxxxxxxxxxxxxx
Date: Sat, 14 Jun 2003 16:18:23 +0200

Hello, 
 
This small patch enables non-ground units (such as aeroplanes, helicopters) to 
be paradropped if they posses the 'paratroopers' flag. Since I used 
freeciv1.14 to patch, I'll explain which lines I edited: 
In unittools.c, go to the function do_paradrop (in cvs: starting at line 
2031). edit line 2051: 
- if (is_ocean(map_get_player_tile(dest_x, dest_y, pplayer)->terrain)) { 
+ if (is_ocean(map_get_player_tile(dest_x, dest_y, pplayer)->terrain) 
+     && is_ground_unittype(punit->type)) { 
and line 2077: 
- if (is_ocean(map_get_terrain(dest_x, dest_y))) { 
+ if (is_ocean(map_get_terrain(dest_x, dest_y)) 
+     && is_ground_unittype(punit->type)) { 
 
I tested this patch (with 1.14), and it worked very well. 
 
Bart Coppens 


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Paradropping non-ground units in the sea, bart <=