summaryrefslogtreecommitdiff
path: root/src/disaster_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-30 13:09:44 +0000
committerrubidium <rubidium@openttd.org>2007-08-30 13:09:44 +0000
commit9b65bc430cc4e59cba2e7ad09c2fcc0448e22781 (patch)
tree6e679af8466e541ec086d1aba2cb7f6f89e4ad69 /src/disaster_cmd.cpp
parentcb7eaff3534c1d18c9c8bc06be04ceb437d97765 (diff)
downloadopenttd-9b65bc430cc4e59cba2e7ad09c2fcc0448e22781.tar.xz
(svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct.
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r--src/disaster_cmd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index a88a1bfe8..7034a16e0 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -611,7 +611,7 @@ static void DisasterTick_Big_Ufo(Vehicle *v)
w = new DisasterVehicle();
if (w == NULL) return;
- u->next = w;
+ u->SetNext(w);
InitializeDisasterVehicle(w, -6 * TILE_SIZE, v->y_pos, 0, DIR_SW, ST_Big_Ufo_Destroyer_Shadow);
w->vehstatus |= VS_SHADOW;
} else if (v->current_order.dest == 0) {
@@ -782,7 +782,7 @@ static void Disaster_Zeppeliner_Init()
/* Allocate shadow too? */
u = new DisasterVehicle();
if (u != NULL) {
- v->next = u;
+ v->SetNext(u);
InitializeDisasterVehicle(u, x, 0, 0, DIR_SE, ST_Zeppeliner_Shadow);
u->vehstatus |= VS_SHADOW;
}
@@ -807,7 +807,7 @@ static void Disaster_Small_Ufo_Init()
/* Allocate shadow too? */
u = new DisasterVehicle();
if (u != NULL) {
- v->next = u;
+ v->SetNext(u);
InitializeDisasterVehicle(u, x, 0, 0, DIR_SE, ST_Small_Ufo_Shadow);
u->vehstatus |= VS_SHADOW;
}
@@ -843,7 +843,7 @@ static void Disaster_Airplane_Init()
u = new DisasterVehicle();
if (u != NULL) {
- v->next = u;
+ v->SetNext(u);
InitializeDisasterVehicle(u, x, y, 0, DIR_SE, ST_Airplane_Shadow);
u->vehstatus |= VS_SHADOW;
}
@@ -878,13 +878,13 @@ static void Disaster_Helicopter_Init()
u = new DisasterVehicle();
if (u != NULL) {
- v->next = u;
+ v->SetNext(u);
InitializeDisasterVehicle(u, x, y, 0, DIR_SW, ST_Helicopter_Shadow);
u->vehstatus |= VS_SHADOW;
w = new DisasterVehicle();
if (w != NULL) {
- u->next = w;
+ u->SetNext(w);
InitializeDisasterVehicle(w, x, y, 140, DIR_SW, ST_Helicopter_Rotors);
}
}
@@ -910,7 +910,7 @@ static void Disaster_Big_Ufo_Init()
/* Allocate shadow too? */
u = new DisasterVehicle();
if (u != NULL) {
- v->next = u;
+ v->SetNext(u);
InitializeDisasterVehicle(u, x, y, 0, DIR_NW, ST_Big_Ufo_Shadow);
u->vehstatus |= VS_SHADOW;
}