mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TWINE: fixed parts of the input handling
fixed error when playing a second fla
This commit is contained in:
committed by
Eugene Sandulenko
parent
1b4a8b8510
commit
3bc2c1921b
@@ -252,6 +252,7 @@ void FlaMovies::playFlaMovie(const char *flaName) {
|
||||
_fadeOut = -1;
|
||||
fadeOutFrames = 0;
|
||||
|
||||
file.close();
|
||||
if (!file.open(fileNamePath)) {
|
||||
warning("Failed to open fla movie '%s'", fileNamePath.c_str());
|
||||
return;
|
||||
|
||||
@@ -1009,7 +1009,9 @@ void TwinEEngine::readKeys() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#if 1
|
||||
{
|
||||
#else
|
||||
int32 size = 0;
|
||||
uint8 *keyboard = nullptr; // TODO: SDL_GetKeyState(&size);
|
||||
for (int32 j = 0; j < size; j++) {
|
||||
@@ -1083,7 +1085,7 @@ void TwinEEngine::readKeys() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
int find = 0;
|
||||
bool found = false;
|
||||
for (int i = 0; i < ARRAYSIZE(pressedKeyMap); i++) {
|
||||
|
||||
Reference in New Issue
Block a user