Fix problems with missing tile effect in places such as Alma and Tixa underground

Also fixes potential problem with buffer overruns


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1115 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Overhaul
2007-07-25 09:24:27 +00:00
parent b24712f2b6
commit 3b4f77b012
4 changed files with 46 additions and 29 deletions
+6 -1
View File
@@ -153,11 +153,16 @@ extern void InternalLocateGridNo( UINT16 sGridNo, BOOLEAN fForce );
UINT32 MainGameScreenInit(void)
{
VIDEO_OVERLAY_DESC VideoOverlayDesc;
UINT32 uiDestPitchBYTES;
UINT8 *pDestBuf=NULL;
/* If any 1 have time please calculate how big this buffer should be
* any questions? joker
*/
gpZBuffer=InitZBuffer( 2048, SCREEN_HEIGHT);
pDestBuf = LockVideoSurface( FRAME_BUFFER, &uiDestPitchBYTES );
gpZBuffer=InitZBuffer( uiDestPitchBYTES, SCREEN_HEIGHT);
UnLockVideoSurface( FRAME_BUFFER);
InitializeBackgroundRects();
//EnvSetTimeInHours(ENV_TIME_12);