Skip to content

Commit

Permalink
JANITORIAL: Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bonki committed Apr 19, 2018
1 parent 25aa607 commit 9bee9e1
Show file tree
Hide file tree
Showing 38 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion audio/softsynth/fmtowns_pc98/towns_midi.cpp
Expand Up @@ -572,7 +572,7 @@ void TownsMidiOutputChannel::keyOff() {

void TownsMidiOutputChannel::keyOnSetFreq(uint16 frq) {
uint16 note = (frq << 1) >> 8;
frq = (_freqMSB[note] << 11) | _freqLSB[note] ;
frq = (_freqMSB[note] << 11) | _freqLSB[note];
out(0xa4, frq >> 8);
out(0xa0, frq & 0xff);
//out(0x28, 0x00);
Expand Down
2 changes: 1 addition & 1 deletion backends/fs/amigaos4/amigaos4-fs.cpp
Expand Up @@ -266,7 +266,7 @@ bool AmigaOSFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b
if (context) {
struct ExamineData * pExd = NULL; // NB: No need to free the value after usage, everything will be dealt with by the DirContext release

AmigaOSFilesystemNode *entry ;
AmigaOSFilesystemNode *entry;
while ( (pExd = IDOS->ExamineDir(context)) ) {
if ( (EXD_IS_FILE(pExd) && ( Common::FSNode::kListFilesOnly == mode ))
|| (EXD_IS_DIRECTORY(pExd) && ( Common::FSNode::kListDirectoriesOnly == mode ))
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/dc/dc-fs.cpp
Expand Up @@ -167,5 +167,5 @@ AbstractFSNode *OSystem_Dreamcast::makeCurrentDirectoryFileNode() const {

AbstractFSNode *OSystem_Dreamcast::makeFileNodePath(const Common::String &path) const {
AbstractFSNode *node = RoninCDFileNode::makeFileNodePath(path);
return (node? node : new RoninCDNonexistingNode(path));
return (node ? node : new RoninCDNonexistingNode(path));
}
26 changes: 13 additions & 13 deletions backends/platform/ds/arm9/source/dsmain.cpp
Expand Up @@ -440,12 +440,12 @@ void playSound(const void *data, u32 length, bool loop, bool adpcm, int rate) {
soundControl.count = 0;
}

soundControl.data[soundControl.count].data = data;
soundControl.data[soundControl.count].len = length | (loop? 0x80000000: 0x00000000);
soundControl.data[soundControl.count].rate = rate; // 367 samples per frame
soundControl.data[soundControl.count].pan = 64;
soundControl.data[soundControl.count].vol = 127;
soundControl.data[soundControl.count].format = adpcm? 2: 0;
soundControl.data[soundControl.count].data = data;
soundControl.data[soundControl.count].len = length | (loop ? 0x80000000 : 0x00000000);
soundControl.data[soundControl.count].rate = rate; // 367 samples per frame
soundControl.data[soundControl.count].pan = 64;
soundControl.data[soundControl.count].vol = 127;
soundControl.data[soundControl.count].format = adpcm ? 2 : 0;

soundControl.count++;

Expand Down Expand Up @@ -641,7 +641,7 @@ void displayMode8Bit() {
displayModeIs8Bit = true;

if (isCpuScalerEnabled()) {
videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);
videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);
videoSetModeSub(MODE_3_2D /*| DISPLAY_BG0_ACTIVE*/ | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); //sub bg 0 will be used to print text

vramSetBankA(VRAM_A_MAIN_BG_0x06000000);
Expand All @@ -660,7 +660,7 @@ void displayMode8Bit() {
BG3_YDY = (int) ((200.0f / 192.0f) * 256);

} else {
videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);
videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);
videoSetModeSub(MODE_3_2D /*| DISPLAY_BG0_ACTIVE*/ | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); //sub bg 0 will be used to print text

vramSetBankA(VRAM_A_MAIN_BG_0x06000000);
Expand Down Expand Up @@ -691,7 +691,7 @@ void displayMode8Bit() {
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 2, 0, true, true);

// Set this again because consoleinit resets it
videoSetMode(MODE_5_2D | (consoleEnable? DISPLAY_BG0_ACTIVE: 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);
videoSetMode(MODE_5_2D | (consoleEnable ? DISPLAY_BG0_ACTIVE : 0) | DISPLAY_BG3_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP);

// Move the cursor to the bottom of the screen using ANSI escape code
consolePrintf("\033[23;0f");
Expand Down Expand Up @@ -971,7 +971,7 @@ void displayMode16BitFlipBuffer() {
u16 *back = get16BitBackBuffer();

// highBuffer = !highBuffer;
// BG3_CR = BG_BMP16_512x256 | BG_BMP_RAM(highBuffer? 1: 0);
// BG3_CR = BG_BMP16_512x256 | BG_BMP_RAM(highBuffer ? 1 : 0);

if (isCpuScalerEnabled()) {
Rescale_320x256x1555_To_256x256x1555(BG_GFX, back, 512, 512);
Expand Down Expand Up @@ -1806,13 +1806,13 @@ void triggerIcon(int imageNum) {


void setIcon(int num, int x, int y, int imageNum, int flags, bool enable) {
sprites[num].attribute[0] = ATTR0_BMP | (enable? (y & 0xFF): 192) | (!enable? ATTR0_DISABLED: 0);
sprites[num].attribute[0] = ATTR0_BMP | (enable ? (y & 0xFF) : 192) | (!enable ? ATTR0_DISABLED : 0);
sprites[num].attribute[1] = ATTR1_SIZE_32 | (x & 0x1FF) | flags;
sprites[num].attribute[2] = ATTR2_ALPHA(1)| (imageNum * 16);
}

void setIconMain(int num, int x, int y, int imageNum, int flags, bool enable) {
spritesMain[num].attribute[0] = ATTR0_BMP | (y & 0xFF) | (!enable? ATTR0_DISABLED: 0);
spritesMain[num].attribute[0] = ATTR0_BMP | (y & 0xFF) | (!enable ? ATTR0_DISABLED : 0);
spritesMain[num].attribute[1] = ATTR1_SIZE_32 | (x & 0x1FF) | flags;
spritesMain[num].attribute[2] = ATTR2_ALPHA(1)| (imageNum * 16);
}
Expand Down Expand Up @@ -1842,7 +1842,7 @@ void updateStatus() {
}

if (indyFightState) {
setIcon(1, (190 - 32), 150, 3, (indyFightRight? 0: ATTR1_FLIP_X), true);
setIcon(1, (190 - 32), 150, 3, (indyFightRight ? 0 : ATTR1_FLIP_X), true);
// consolePrintf("%d\n", indyFightRight);
} else {
// setIcon(1, 0, 0, 0, 0, false);
Expand Down
2 changes: 1 addition & 1 deletion backends/plugins/elf/version.cpp
Expand Up @@ -27,6 +27,6 @@
const char *gScummVMPluginBuildDate = "Git Master"; /* ScummVM Git Master */
#else
const char *gScummVMPluginBuildDate __attribute__((visibility("hidden"))) =
__DATE__ " " __TIME__ ;
__DATE__ " " __TIME__;
#endif
#endif
32 changes: 16 additions & 16 deletions common/unzip.cpp
Expand Up @@ -485,13 +485,13 @@ static uLong unzlocal_SearchCentralDir(Common::SeekableReadStream &fin) {

uBackRead = 4;
while (uBackRead<uMaxBack) {
uLong uReadSize,uReadPos ;
uLong uReadSize,uReadPos;
int i;
if (uBackRead+BUFREADCOMMENT>uMaxBack)
uBackRead = uMaxBack;
else
uBackRead+=BUFREADCOMMENT;
uReadPos = uSizeFile-uBackRead ;
uReadPos = uSizeFile-uBackRead;

uReadSize = ((BUFREADCOMMENT+4) < (uSizeFile-uReadPos)) ?
(BUFREADCOMMENT+4) : (uSizeFile-uReadPos);
Expand Down Expand Up @@ -670,13 +670,13 @@ int unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info) {
static void unzlocal_DosDateToTmuDate(uLong ulDosDate, tm_unz* ptm) {
uLong uDate;
uDate = (uLong)(ulDosDate>>16);
ptm->tm_mday = (uInt)(uDate&0x1f) ;
ptm->tm_mon = (uInt)((((uDate)&0x1E0)/0x20)-1) ;
ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980) ;
ptm->tm_mday = (uInt)(uDate&0x1f);
ptm->tm_mon = (uInt)((((uDate)&0x1E0)/0x20)-1);
ptm->tm_year = (uInt)(((uDate&0x0FE00)/0x0200)+1980);

ptm->tm_hour = (uInt) ((ulDosDate &0xF800)/0x800);
ptm->tm_min = (uInt) ((ulDosDate&0x7E0)/0x20) ;
ptm->tm_sec = (uInt) (2*(ulDosDate&0x1f)) ;
ptm->tm_min = (uInt) ((ulDosDate&0x7E0)/0x20);
ptm->tm_sec = (uInt) (2*(ulDosDate&0x1f));
}

/*
Expand Down Expand Up @@ -772,7 +772,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file,

lSeek+=file_info.size_filename;
if ((err==UNZ_OK) && (szFileName!=NULL)) {
uLong uSizeRead ;
uLong uSizeRead;
if (file_info.size_filename<fileNameBufferSize) {
*(szFileName+file_info.size_filename)='\0';
uSizeRead = file_info.size_filename;
Expand All @@ -787,7 +787,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file,


if ((err==UNZ_OK) && (extraField!=NULL)) {
uLong uSizeRead ;
uLong uSizeRead;
if (file_info.size_file_extra<extraFieldBufferSize)
uSizeRead = file_info.size_file_extra;
else
Expand All @@ -810,7 +810,7 @@ static int unzlocal_GetCurrentFileInfoInternal(unzFile file,


if ((err==UNZ_OK) && (szComment!=NULL)) {
uLong uSizeRead ;
uLong uSizeRead;
if (file_info.size_file_comment<commentBufferSize) {
*(szComment+file_info.size_file_comment)='\0';
uSizeRead = file_info.size_file_comment;
Expand Down Expand Up @@ -897,7 +897,7 @@ int unzGoToNextFile(unzFile file) {
return UNZ_END_OF_LIST_OF_FILE;

s->pos_in_central_dir += SIZECENTRALDIRITEM + s->cur_file_info.size_filename +
s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment ;
s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment;
s->num_file++;
err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
&s->cur_file_info_internal,
Expand Down Expand Up @@ -1185,11 +1185,11 @@ int unzReadCurrentFile(unzFile file, voidp buf, unsigned len) {
}

if (pfile_in_zip_read_info->compression_method==0) {
uInt uDoCopy,i ;
uInt uDoCopy,i;

This comment has been minimized.

Copy link
@Strangerke

Strangerke Apr 19, 2018

Member

I think there's a missing space after the comma

This comment has been minimized.

Copy link
@bonki

bonki Apr 19, 2018

Author Member

Indeed, I had noticed that. The reason I didn't add it was that the file wasn't initially written by us it seems and thus would need a bigger cleanup, so I only fixed the space-before-semicolon issue which I wanted to be part of this commit. There are dozens of spaces missing in various places.

if (pfile_in_zip_read_info->stream.avail_out < pfile_in_zip_read_info->stream.avail_in)
uDoCopy = pfile_in_zip_read_info->stream.avail_out ;
uDoCopy = pfile_in_zip_read_info->stream.avail_out;
else
uDoCopy = pfile_in_zip_read_info->stream.avail_in ;
uDoCopy = pfile_in_zip_read_info->stream.avail_in;

for (i=0;i<uDoCopy;i++)
*(pfile_in_zip_read_info->stream.next_out+i) = *(pfile_in_zip_read_info->stream.next_in+i);
Expand Down Expand Up @@ -1327,7 +1327,7 @@ int unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) {
if (len>size_to_read)
read_now = (uInt)size_to_read;
else
read_now = (uInt)len ;
read_now = (uInt)len;

if (read_now==0)
return 0;
Expand Down Expand Up @@ -1392,7 +1392,7 @@ int unzCloseCurrentFile(unzFile file) {
*/
int unzGetGlobalComment(unzFile file, char *szComment, uLong uSizeBuf) {
unz_s* s;
uLong uReadThis ;
uLong uReadThis;
if (file==NULL)
return UNZ_PARAMERROR;
s=(unz_s*)file;
Expand Down
2 changes: 1 addition & 1 deletion engines/access/scripts.cpp
Expand Up @@ -152,7 +152,7 @@ void Scripts::searchForSequence() {
_data->seek(0);
int sequenceId;
do {
while (_data->readByte() != SCRIPT_START_BYTE) ;
while (_data->readByte() != SCRIPT_START_BYTE);

This comment has been minimized.

Copy link
@Strangerke

Strangerke Apr 19, 2018

Member

This one was on purpose, to make it clear that it clear that the while() was a oneliner. In this case, is it supposed to be written like that or with the semi-column on the next line?

This comment has been minimized.

Copy link
@bonki

bonki Apr 19, 2018

Author Member

So I figured but there were a lot more occurrences of one-liners without the space. After double-checking our coding conventions, I now realize that I should have fixed the others to include the space instead. I'll revert these two changes and clean-up the other occurrences in a later commit. Thanks!

sequenceId = _data->readUint16LE();
} while (sequenceId != _sequence);
}
Expand Down
2 changes: 1 addition & 1 deletion engines/bladerunner/audio_speech.cpp
Expand Up @@ -110,7 +110,7 @@ void AudioSpeech::stopSpeech() {

bool AudioSpeech::isPlaying() const {
if (_channel == -1) {
return false;
return false;
}
return _isActive;
}
Expand Down
14 changes: 7 additions & 7 deletions engines/bladerunner/screen_effects.h
Expand Up @@ -39,12 +39,12 @@ class ScreenEffects {
public:
struct Entry {
Color256 palette[16];
uint16 x;
uint16 y;
uint16 width;
uint16 height;
uint16 z;
uint8 *data;
uint16 x;
uint16 y;
uint16 width;
uint16 height;
uint16 z;
uint8 *data;
};

BladeRunnerEngine *_vm;
Expand All @@ -58,7 +58,7 @@ class ScreenEffects {
~ScreenEffects();

void readVqa(Common::SeekableReadStream *stream);
void getColor(Color256 *outColor, uint16 x, uint16 y, uint16 z) const ;
void getColor(Color256 *outColor, uint16 x, uint16 y, uint16 z) const;

//TODO
//bool isAffectingArea(int x, int y, int width, int height, int unk);
Expand Down
2 changes: 1 addition & 1 deletion engines/cge/vga13h.cpp
Expand Up @@ -707,7 +707,7 @@ uint8 Vga::closest(Dac *pal, const uint8 colR, const uint8 colG, const uint8 col
uint16 D = ((r > R) ? (r - R) : (R - r)) +
((g > G) ? (g - G) : (G - g)) +
((b > B) ? (b - B) : (B - b)) +
((l > L) ? (l - L) : (L - l)) * 10 ;
((l > L) ? (l - L) : (L - l)) * 10;

if (D < dif) {
found = i;
Expand Down
4 changes: 2 additions & 2 deletions engines/cge2/vga13h.cpp
Expand Up @@ -938,13 +938,13 @@ uint8 Vga::closest(Dac *pal, const uint8 colR, const uint8 colG, const uint8 col
uint16 D = ((r > R) ? (r - R) : (R - r)) +
((g > G) ? (g - G) : (G - g)) +
((b > B) ? (b - B) : (B - b)) +
((l > L) ? (l - L) : (L - l)) * 10 ;
((l > L) ? (l - L) : (L - l)) * 10;

if (D < dif) {
found = i;
dif = D;
if (D == 0)
break; // exact!
break; // exact!
}
}
return found;
Expand Down
4 changes: 2 additions & 2 deletions engines/cryo/eden.cpp
Expand Up @@ -2321,7 +2321,7 @@ void EdenGame::my_bulle() {
} else if (c >= 0x80 && c < 0x90)
SysBeep(1);
else if (c >= 0x90 && c < 0xA0) {
while (*textPtr++ != 0xFF) ;
while (*textPtr++ != 0xFF);

This comment has been minimized.

Copy link
@Strangerke

Strangerke Apr 19, 2018

Member

Same remark than for the one in Access engine.

This comment has been minimized.

Copy link
@bonki

bonki Apr 19, 2018

Author Member

Thanks, see above.

textPtr--;
} else if (c >= 0xA0 && c < 0xC0)
_globals->_textToken1 = c & 0xF;
Expand All @@ -2333,7 +2333,7 @@ void EdenGame::my_bulle() {
#ifdef FAKE_DOS_VERSION
_globals->_textWidthLimit = c1 + 160;
#else
_globals->_textWidthLimit = c1 + _subtitlesXCenter; //TODO: signed? 160 in pc ver
_globals->_textWidthLimit = c1 + _subtitlesXCenter; // TODO: signed? 160 in pc ver
#endif
else {
byte c2 = *textPtr++;
Expand Down
2 changes: 1 addition & 1 deletion engines/gnap/gnap.cpp
Expand Up @@ -979,7 +979,7 @@ int GnapEngine::playSoundC() {

if (!_timers[_soundTimerIndexC]) {
_timers[_soundTimerIndexC] = getRandom(50) + 150;
soundId = kSoundIdsC[getRandom(7)] ;
soundId = kSoundIdsC[getRandom(7)];
playSound(soundId | 0x10000, false);
}
return soundId;
Expand Down
2 changes: 1 addition & 1 deletion engines/kyra/eobcommon.h
Expand Up @@ -885,7 +885,7 @@ friend class TransferPartyWiz;
void inflictMonsterDamage(EoBMonsterInPlay *m, int damage, bool giveExperience);
void calcAndInflictMonsterDamage(EoBMonsterInPlay *m, int times, int pips, int offs, int flags, int savingThrowType, int savingThrowEffect);
void calcAndInflictCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int savingThrowEffect);
int calcCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int damageType) ;
int calcCharacterDamage(int charIndex, int times, int itemOrPips, int useStrModifierOrBase, int flags, int savingThrowType, int damageType);
void inflictCharacterDamage(int charIndex, int damage);

bool characterAttackHitTest(int charIndex, int monsterIndex, int item, int attackType);
Expand Down
4 changes: 2 additions & 2 deletions engines/kyra/screen_eob.cpp
Expand Up @@ -499,7 +499,7 @@ void Screen_EoB::drawShape(uint8 pageNum, const uint8 *shapeData, int x, int y,
int16 dX = x - (_dsX1 << 3);
int16 dY = y;
int16 dW = _dsX2 - _dsX1;
uint8 pixelsPerByte = *src++ ;
uint8 pixelsPerByte = *src++;

uint16 dH = *src++;
uint16 width = (*src++) << 3;
Expand Down Expand Up @@ -1211,7 +1211,7 @@ void Screen_EoB::createFadeTable(uint8 *palData, uint8 *dst, uint8 rootColor, ui

if (t <= v && (ii == rootColor || ii != i)) {
v = t;
col = ii ;
col = ii;
}
}
*dst++ = col;
Expand Down
2 changes: 1 addition & 1 deletion engines/kyra/sequences_darkmoon.cpp
Expand Up @@ -876,7 +876,7 @@ void DarkMoonEngine::seq_playCredits(DarkmoonSequenceHelper *sq, const uint8 *da
const uint8 *shp = sq->_shapes[(*++posOld) - 1];
items[i + 1].data = shp;
items[i + 1].size = shp[1];
items[i + 1].x = (dm->w - shp[2]) << 2 ;
items[i + 1].x = (dm->w - shp[2]) << 2;
items[i + 1].dataType = 1;
delete[] items[i + 1].str;
items[i + 1].str = 0;
Expand Down
2 changes: 1 addition & 1 deletion engines/kyra/sequences_hof.cpp
Expand Up @@ -3378,7 +3378,7 @@ void KyraEngine_HoF::seq_showStarcraftLogo() {

int KyraEngine_HoF::seq_playIntro() {
bool startupSaveLoadable = saveFileLoadable(0);
return SeqPlayer_HOF(this, _screen, _system, startupSaveLoadable).play(kSequenceVirgin, startupSaveLoadable? kSequenceTitle : kSequenceNoLooping);
return SeqPlayer_HOF(this, _screen, _system, startupSaveLoadable).play(kSequenceVirgin, startupSaveLoadable ? kSequenceTitle : kSequenceNoLooping);
}

int KyraEngine_HoF::seq_playOutro() {
Expand Down
2 changes: 1 addition & 1 deletion engines/lilliput/script.cpp
Expand Up @@ -1222,7 +1222,7 @@ void LilliputScript::listAllTexts() {
int index = _vm->_packedStringIndex[i];
int variantCount = 0;
while (_vm->_packedStrings[index + variantCount] == 0x5B)
++variantCount ;
++variantCount;
/*
int it = 0;
if (variantCount != 0) {
Expand Down
4 changes: 2 additions & 2 deletions engines/mads/nebular/nebular_scenes4.cpp
Expand Up @@ -2443,7 +2443,7 @@ void Scene405::step() {
}

if (_game._trigger == 70) {
_game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount ;
_game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount;
_game._player._visible = true;
_globals._sequenceIndexes[1] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[1], false, 6, 1, 0, 0);
_scene->_sequences.addSubEntry(_globals._sequenceIndexes[1], SEQUENCE_TRIGGER_EXPIRE, 0, 71);
Expand All @@ -2458,7 +2458,7 @@ void Scene405::step() {
}

if (_game._trigger == 75) {
_game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount ;
_game._player._priorTimer = _scene->_frameStartTime + _game._player._ticksAmount;
_game._player._visible = true;
_scene->_sequences.remove(_globals._sequenceIndexes[1]);
_globals._sequenceIndexes[1] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[1], false, 6, 1, 0, 0);
Expand Down
4 changes: 2 additions & 2 deletions engines/saga/interface.cpp
Expand Up @@ -2804,8 +2804,8 @@ void Interface::mapPanelDrawCrossHair() {

if (screen.contains(mapPosition)) {
_vm->_sprite->draw(_vm->_sprite->_mainSprites,
_mapPanelCrossHairState? RID_ITE_SPR_CROSSHAIR : RID_ITE_SPR_CROSSHAIR + 1,
mapPosition, 256);
_mapPanelCrossHairState ? RID_ITE_SPR_CROSSHAIR : RID_ITE_SPR_CROSSHAIR + 1,
mapPosition, 256);
}
}

Expand Down

0 comments on commit 9bee9e1

Please sign in to comment.