--- a/src/road_cmd.cpp Tue Mar 20 10:06:39 2007 +0000
+++ b/src/road_cmd.cpp Tue Mar 20 13:47:00 2007 +0000
@@ -12,6 +12,7 @@
#include "table/strings.h"
#include "functions.h"
#include "map.h"
+#include "landscape.h"
#include "tile.h"
#include "town_map.h"
#include "vehicle.h"
@@ -864,7 +865,7 @@
{
switch (_opt.landscape) {
case LT_HILLY:
- if (IsOnSnow(tile) != (GetTileZ(tile) > _opt.snow_line)) {
+ if (IsOnSnow(tile) != (GetTileZ(tile) > GetSnowLine())) {
ToggleSnow(tile);
MarkTileDirtyByTile(tile);
}