Minor code edits to Graphics.cpp

This commit is contained in:
NovaRain
2021-12-16 12:40:46 +08:00
parent d14e7ccd9f
commit 5a9edb9723
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ PTR_(btncnt, DWORD)
PTR_(cap, fo::AIcap*) // dynamic array
PTR_(carCurrentArea, DWORD)
PTR_(carGasAmount, long) // from 0 to 80000
PTR_(cmap, DWORD)
PTR_(cmap, fo::PALETTE) // array of 256 PALETTE
PTR_(colorTable, DWORD)
PTR_(combat_free_move, DWORD)
PTR_(combat_list, fo::GameObject**) // dynamic array
+1 -3
View File
@@ -364,9 +364,7 @@ static void DrawFPS() {}
#endif
static void Present() {
if ((moveWindowKey[0] != 0 && KeyDown(moveWindowKey[0])) ||
(moveWindowKey[1] != 0 && KeyDown(moveWindowKey[1])))
{
if (moveWindowKey[0] != 0 && (KeyDown(moveWindowKey[0]) || (moveWindowKey[1] != 0 && KeyDown(moveWindowKey[1])))) {
int mx, my;
GetMouse(&mx, &my);
windowLeft += mx;