Package: gearhead / 1.310-2

terminal-drawing-order Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Copied from https://github.com/jwvhewitt/gearhead-1/pull/86
Index: gearhead-1.310/conmap.pp
===================================================================
--- gearhead-1.310.orig/conmap.pp	2019-02-07 15:52:33.000000000 +0200
+++ gearhead-1.310/conmap.pp	2020-05-11 17:27:34.553246457 +0300
@@ -376,8 +376,8 @@
 	DrawMapBorder( N , E , S , W );
 
 	{ Display all terrain. }
-	for X := 0 to ( MapDisplayWidth - 1 ) do begin
-		for Y := 0 to ( MapDisplayHeight - 1 ) do begin
+	for Y := 0 to ( MapDisplayHeight - 1 ) do begin
+		for X := 0 to ( MapDisplayWidth - 1 ) do begin
 			PlotTerrain( gb , X + OriginX , Y + OriginY );
 		end;
 	end;