fix missing parenthesis around logic

This commit is contained in:
Chris Cromer 2019-05-01 20:31:24 -04:00
parent 8bef23d24f
commit 42c5576595
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
2 changed files with 14 additions and 14 deletions

View File

@ -662,7 +662,7 @@ int Logic::decode(int ResNum)
else if(CurByte <= NumAGICommands){
ThisCommand = CurByte;
ThisLine = MultStr(" ",BlockDepth);
if (game->show_special_syntax && (ThisCommand>=0x01 && ThisCommand<=0x0B)||(ThisCommand>=0xA5&&ThisCommand<=0xA8))AddSpecialSyntaxCommand();
if (game->show_special_syntax && ((ThisCommand>=0x01 && ThisCommand<=0x0B)||(ThisCommand>=0xA5&&ThisCommand<=0xA8)))AddSpecialSyntaxCommand();
else{
ThisLine+=(string(AGICommand[ThisCommand].Name) + "(");
ArgsStart = ThisLine.length();

View File

@ -55,7 +55,7 @@ bool ObjList::GetItems()
do{
lsbyte = ResourceData.Data[3+CurrentItem*3];
msbyte = ResourceData.Data[3+CurrentItem*3+1];
ThisNameStart = (msbyte<<8)|lsbyte + 3;
ThisNameStart = (msbyte<<8)| (lsbyte + 3);
RoomNum[CurrentItem] = ResourceData.Data[3+CurrentItem*3+2];
NamePos = ThisNameStart;
if (NamePos > ResourceData.Size)return false; //object name past end of file