From 47639832b14d8a78a19c8465d45df885c007cb20 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 23 Jun 2014 19:31:17 +0300 Subject: [PATCH] Probably fixed bug with map border rendering in rectangular maps --- client/mapHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mapHandler.cpp b/client/mapHandler.cpp index 9e89e7504..84496ea4b 100644 --- a/client/mapHandler.cpp +++ b/client/mapHandler.cpp @@ -207,7 +207,7 @@ void CMapHandler::borderAndTerrainBitmapInit() terBitmapNum = 17; else if(i==(sizes.x) && j==(sizes.y)) terBitmapNum = 18; - else if(j == -1 && i > -1 && i < sizes.y) + else if(j == -1 && i > -1 && i < sizes.x) terBitmapNum = rand.nextInt(22, 23); else if(i == -1 && j > -1 && j < sizes.y) terBitmapNum = rand.nextInt(33, 34);