Commit 1e1f7391 authored by Steven Fuller's avatar Steven Fuller

fixed some possible compile errors.

added a few missing "Clear accumulated mouse movement" calls.
parent ff5f6601
...@@ -12,8 +12,14 @@ unsigned long get_TimeCount(); ...@@ -12,8 +12,14 @@ unsigned long get_TimeCount();
long filelength(int handle); long filelength(int handle);
#ifndef stricmp
#define stricmp strcasecmp #define stricmp strcasecmp
#endif
#ifndef strnicmp
#define strnicmp strncasecmp #define strnicmp strncasecmp
#endif
char *strlwr(char *s); char *strlwr(char *s);
char *itoa(int value, char *string, int radix); char *itoa(int value, char *string, int radix);
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
boolean AdLibPresent, SoundBlasterPresent; boolean AdLibPresent, SoundBlasterPresent;
SDMode SoundMode, MusicMode; SDMode SoundMode;
SMMode MusicMode;
SDSMode DigiMode; SDSMode DigiMode;
static boolean SD_Started; static boolean SD_Started;
......
...@@ -547,8 +547,11 @@ int CP_CheckQuick(unsigned scancode) ...@@ -547,8 +547,11 @@ int CP_CheckQuick(unsigned scancode)
if (loadedgame) if (loadedgame)
playstate = ex_abort; playstate = ex_abort;
lasttimecount = get_TimeCount(); lasttimecount = get_TimeCount();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
#ifndef SPEAR #ifndef SPEAR
CA_UnCacheGrChunk(C_CURSOR1PIC); CA_UnCacheGrChunk(C_CURSOR1PIC);
CA_UnCacheGrChunk(C_CURSOR2PIC); CA_UnCacheGrChunk(C_CURSOR2PIC);
...@@ -615,6 +618,8 @@ int CP_CheckQuick(unsigned scancode) ...@@ -615,6 +618,8 @@ int CP_CheckQuick(unsigned scancode)
lasttimecount = get_TimeCount(); lasttimecount = get_TimeCount();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
#ifndef SPEAR #ifndef SPEAR
CA_UnCacheGrChunk(C_CURSOR1PIC); CA_UnCacheGrChunk(C_CURSOR1PIC);
CA_UnCacheGrChunk(C_CURSOR2PIC); CA_UnCacheGrChunk(C_CURSOR2PIC);
......
...@@ -696,6 +696,8 @@ void EndText() ...@@ -696,6 +696,8 @@ void EndText()
SETFONTCOLOR(0,15); SETFONTCOLOR(0,15);
IN_ClearKeysDown(); IN_ClearKeysDown();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
FreeMusic(); FreeMusic();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment