mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Minor code edits to Graphics.cpp
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user