mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
Fix dumb CE compiler
svn-id: r16026
This commit is contained in:
parent
c9fb63af0b
commit
876079be75
@ -104,12 +104,13 @@ Menu::Menu(Screen *pScreen, Mouse *pMouse) {
|
||||
}
|
||||
|
||||
Menu::~Menu(void) {
|
||||
int i;
|
||||
// the menu may be open, so delete the icons
|
||||
for (int i = 0; i < TOTAL_pockets; i++) {
|
||||
for (i = 0; i < TOTAL_pockets; i++) {
|
||||
delete _objects[i];
|
||||
_objects[i] = NULL;
|
||||
}
|
||||
for (int i = 0; i < 16; i++) {
|
||||
for (i = 0; i < 16; i++) {
|
||||
delete _subjects[i];
|
||||
_subjects[i] = NULL;
|
||||
}
|
||||
|
@ -87,14 +87,15 @@ void Sword1CheckDirectory(const FSList &fslist, bool *filesFound) {
|
||||
}
|
||||
|
||||
DetectedGameList Engine_SWORD1_detectGames(const FSList &fslist) {
|
||||
int i;
|
||||
DetectedGameList detectedGames;
|
||||
bool filesFound[NUM_FILES_TO_CHECK];
|
||||
for (int i = 0; i < NUM_FILES_TO_CHECK; i++)
|
||||
for (i = 0; i < NUM_FILES_TO_CHECK; i++)
|
||||
filesFound[i] = false;
|
||||
|
||||
Sword1CheckDirectory(fslist, filesFound);
|
||||
bool mainFilesFound = true;
|
||||
for (int i = 0; i < NUM_FILES_TO_CHECK -1; i++)
|
||||
for (i = 0; i < NUM_FILES_TO_CHECK -1; i++)
|
||||
if (!filesFound[i])
|
||||
mainFilesFound = false;
|
||||
|
||||
|
@ -511,11 +511,12 @@ Sound::~Sound() {
|
||||
|
||||
int Sound::readBuffer(int16 *buffer, const int numSamples) {
|
||||
Common::StackLock lock(_mutex);
|
||||
int i;
|
||||
|
||||
if (!_soundOn || _musicPaused)
|
||||
return 0;
|
||||
|
||||
for (int i = 0; i < MAXMUS; i++) {
|
||||
for (i = 0; i < MAXMUS; i++) {
|
||||
if (_music[i] && _music[i]->readyToRemove()) {
|
||||
delete _music[i];
|
||||
_music[i] = NULL;
|
||||
@ -536,7 +537,7 @@ int Sound::readBuffer(int16 *buffer, const int numSamples) {
|
||||
if (!_mixBuffer)
|
||||
return 0;
|
||||
|
||||
for (int i = 0; i < MAXMUS; i++) {
|
||||
for (i = 0; i < MAXMUS; i++) {
|
||||
if (!_music[i])
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user