All pastes #95790 Raw Edit

Unnamed

public text v1 · immutable
#95790 ·published 2006-07-22 09:43 UTC
rendered paste body
Index: src/Game.cpp
===================================================================
--- src/Game.cpp	(wersja 20)
+++ src/Game.cpp	(kopia robocza)
@@ -1652,9 +1652,6 @@
 	fps = 0;
 	debug = false;
 
-	//When shade is set to true map is not revealed at the beginning of the game
-	shade = true;
-
 	builderSelectMode = fullscreenMode = 
 
 	groupCreateMode = menuMode = messageMode = moveDownMode = 
@@ -4357,9 +4354,9 @@
 							dborder->maxX -= gameBarPos.w;
 
 							//altered
+							dborder->minY += topBarPos.h-TOPBAR_MASKED_AREA_HEIGHT;
+							dborder->maxY = dborder->minY + screen->h-1;
 							
-							dborder->minY -= topBarPos.h - TOPBAR_MASKED_AREA_HEIGHT;
-							
 						}
 						else
 						{
@@ -4376,8 +4373,10 @@
 							dborder->minY -= topBarPos.h;
 							if (dborder->minY < 0)
 							{
-								dborder->maxY = map->sizeY*BLOCKSIZE - screen->h;
-								dborder->minY = 0;// map->sizeY*BLOCKSIZE-1;
+								//dborder->maxY = map->sizeY*BLOCKSIZE - screen->h;
+								dborder->minY = 0;
+								dborder->maxY = dborder->minY + screen->h-1;
+								//dborder->minY = 0;// map->sizeY*BLOCKSIZE-1;
 							}
 
 							radarMode = false;	//once press tab we can no longer be stuck in radar square