mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
+6
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user