mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Bugfix: Console now works in VS 2008 (by SpaceViking and The_Bob)
- Bugfix: Reset the ALT + \ keys after opening the console in the SGP git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2991 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-2
@@ -1,13 +1,14 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
#include "res\resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
#define IDC_STATIC 00
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include "windows.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "VFS/Location/vfs_slf_library.h"
|
||||
#include "Text.h"
|
||||
|
||||
#define USE_CONSOLE 0
|
||||
#define USE_CONSOLE 1
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
#include "Console.h"
|
||||
#include "Lua Interpreter.h"
|
||||
#include "connect.h"
|
||||
#include "english.h"
|
||||
|
||||
#ifdef JA2
|
||||
#include "BuildDefines.h"
|
||||
@@ -527,6 +528,11 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the pressed keys
|
||||
gfKeyState[ ALT ] = FALSE;
|
||||
gfKeyState[ CTRL ] = FALSE;
|
||||
gfKeyState[ 219 ] = FALSE; // "\"
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -531,6 +531,10 @@
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Console\Console.rc"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Res\ja2.rc"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user