mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- bug fix: CTD in endgame when killing Deidrana
- disabled code for CD-ROM check (game was killed every time when USB-Stick was removed) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@215 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -383,20 +383,20 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
|
||||
#if defined( JA2 )
|
||||
case WM_DEVICECHANGE:
|
||||
{
|
||||
DEV_BROADCAST_HDR *pHeader = (DEV_BROADCAST_HDR *)lParam;
|
||||
//DEV_BROADCAST_HDR *pHeader = (DEV_BROADCAST_HDR *)lParam;
|
||||
|
||||
//if a device has been removed
|
||||
if( wParam == DBT_DEVICEREMOVECOMPLETE )
|
||||
{
|
||||
//if its a disk
|
||||
if( pHeader->dbch_devicetype == DBT_DEVTYP_VOLUME )
|
||||
{
|
||||
//check to see if the play cd is still in the cdrom
|
||||
if( !CheckIfGameCdromIsInCDromDrive() )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
////if a device has been removed
|
||||
//if( wParam == DBT_DEVICEREMOVECOMPLETE )
|
||||
//{
|
||||
// //if its a disk
|
||||
// if( pHeader->dbch_devicetype == DBT_DEVTYP_VOLUME )
|
||||
// {
|
||||
// //check to see if the play cd is still in the cdrom
|
||||
// if( !CheckIfGameCdromIsInCDromDrive() )
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user