From 7789e9e01cfe1922a9d0b0a702d6bd1f7f6b4f88 Mon Sep 17 00:00:00 2001 From: mateuszb Date: Tue, 31 Jul 2007 14:29:40 +0000 Subject: [PATCH] small bugfix --- mapHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapHandler.cpp b/mapHandler.cpp index 14bcb6365..13391c4bf 100644 --- a/mapHandler.cpp +++ b/mapHandler.cpp @@ -195,10 +195,10 @@ void CMapHandler::init() undRoadBitmaps[i][j] = NULL; else { - if(reader->map.terrain[i-Woff][j-Hoff].malle) + if(reader->map.undergroungTerrain[i-Woff][j-Hoff].malle) { undRoadBitmaps[i][j] = roadDefs[reader->map.undergroungTerrain[i-Woff][j-Hoff].malle-1]->ourImages[reader->map.undergroungTerrain[i-Woff][j-Hoff].roadDir].bitmap; - int cDir = reader->map.terrain[i-Woff][j-Hoff].roadDir; + int cDir = reader->map.undergroungTerrain[i-Woff][j-Hoff].roadDir; if(cDir==0 || cDir==1 || cDir==2 || cDir==3 || cDir==4 || cDir==5) { if(i-Woff+1map.width && j-Hoff-1>0 && reader->map.undergroungTerrain[i-Woff+1][j-Hoff].malle && reader->map.undergroungTerrain[i-Woff][j-Hoff-1].malle)