Implemented proper support for the Pause 'p' key

svn-id: r38995
This commit is contained in:
Paul Gilbert 2009-03-01 02:20:22 +00:00
parent aa34628713
commit 57c7593325
3 changed files with 4 additions and 8 deletions

View File

@ -43,10 +43,6 @@ void drawBlackSolidBoxSmall() {
drawSolidBox(64, 100, 256, 117, 0);
}
void resetRaster(uint8 *rasterPtr, int32 rasterSize) {
memset(rasterPtr, 0, rasterSize);
}
void loadPakedFileToMem(int fileIdx, uint8 *buffer) {
changeCursor(CURSOR_DISK);
@ -1267,7 +1263,6 @@ void closeAllMenu(void) {
}
int processInput(void) {
static bool pausedButtonDown = false;
int16 mouseX = 0;
int16 mouseY = 0;
int16 button = 0;
@ -1312,7 +1307,9 @@ int processInput(void) {
if (keyboardCode == Common::KEYCODE_p) {
keyboardCode = Common::KEYCODE_INVALID;
_vm->pauseEngine(true);
mouseOff();
bool pausedButtonDown = false;
while (!_vm->shouldQuit()) {
getMouseStatus(&main10, &mouseX, &button, &mouseY);
@ -1331,8 +1328,8 @@ int processInput(void) {
return 1;
keyboardCode = Common::KEYCODE_INVALID;
pausedButtonDown = false;
_vm->pauseEngine(false);
mouseOn();
return 0;
}

View File

@ -109,7 +109,6 @@ int getProcParam(int overlayIdx, int param2, const char * name);
void changeScriptParamInList(int param1, int param2, scriptInstanceStruct * pScriptInstance, int newValue, int param3);
uint8 *getDataFromData3(ovlData3Struct * ptr, int param);
void removeExtention(const char *name, char *buffer);
void resetRaster(uint8 * rasterPtr, int32 rasterSize);
void resetPtr2(scriptInstanceStruct * ptr);
void getFileExtention(const char *name, char *buffer);
void *allocAndZero(int size);

View File

@ -666,7 +666,7 @@ int16 Op_RemoveCell(void) {
return 0;
}
int16 fontFileIndex;
int16 fontFileIndex = -1;
int16 Op_SetFont(void) {
fontFileIndex = popVar();