mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Multiplayer Bugfix: Fixed the bug, playing a "tilt" sound and showing the mini laptop graphic on the screen, when opening the laptop / option screen from map screen from map screen
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4718 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -8337,6 +8337,8 @@ void EndMapScreen( BOOLEAN fDuringFade )
|
||||
|
||||
if( !gfDontStartTransitionFromLaptop )
|
||||
{
|
||||
// WANNE: This code blocks never gets called, but this is fine, cause we don't need it. That seems to be an "old" unused code block!
|
||||
|
||||
VOBJECT_DESC VObjectDesc;
|
||||
UINT32 uiLaptopOn;
|
||||
|
||||
@@ -8346,8 +8348,8 @@ void EndMapScreen( BOOLEAN fDuringFade )
|
||||
sprintf( VObjectDesc.ImageFile, "INTERFACE\\LaptopOn.sti" );
|
||||
if( !AddVideoObject( &VObjectDesc, &uiLaptopOn ) )
|
||||
AssertMsg( 0, "Failed to load data\\Interface\\LaptopOn.sti" );
|
||||
BltVideoObjectFromIndex( FRAME_BUFFER, uiLaptopOn, 0, 465, 417, VO_BLT_SRCTRANSPARENCY, NULL );
|
||||
InvalidateRegion( 465, 417, 480, 427 );
|
||||
BltVideoObjectFromIndex( FRAME_BUFFER, uiLaptopOn, 0, iScreenWidthOffset + 465, iScreenHeightOffset + 417, VO_BLT_SRCTRANSPARENCY, NULL );
|
||||
InvalidateRegion( iScreenWidthOffset + 465, iScreenHeightOffset + 417, iScreenWidthOffset + 480, iScreenHeightOffset + 427 );
|
||||
ExecuteBaseDirtyRectQueue( );
|
||||
EndFrameBufferRender( );
|
||||
DeleteVideoObjectFromIndex( uiLaptopOn );
|
||||
|
||||
Reference in New Issue
Block a user