Chunnel: Fix setting of tunnel ID in load conversion, add method to set ID.
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
#include "../error.h"
|
||||
#include "../disaster_vehicle.h"
|
||||
#include "../tracerestrict.h"
|
||||
#include "../tunnel_map.h"
|
||||
|
||||
|
||||
#include "saveload_internal.h"
|
||||
@@ -2047,8 +2048,8 @@ bool AfterLoadGame()
|
||||
|
||||
const Tunnel *t = new Tunnel(start_tile, end_tile, false);
|
||||
|
||||
_m[start_tile].m2 = t->index;
|
||||
_m[end_tile].m2 = t->index;
|
||||
SetTunnelIndex(start_tile, t->index);
|
||||
SetTunnelIndex(end_tile, t->index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user