fix missing parenthesis around logic
This commit is contained in:
parent
8bef23d24f
commit
42c5576595
@ -662,7 +662,7 @@ int Logic::decode(int ResNum)
|
|||||||
else if(CurByte <= NumAGICommands){
|
else if(CurByte <= NumAGICommands){
|
||||||
ThisCommand = CurByte;
|
ThisCommand = CurByte;
|
||||||
ThisLine = MultStr(" ",BlockDepth);
|
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{
|
else{
|
||||||
ThisLine+=(string(AGICommand[ThisCommand].Name) + "(");
|
ThisLine+=(string(AGICommand[ThisCommand].Name) + "(");
|
||||||
ArgsStart = ThisLine.length();
|
ArgsStart = ThisLine.length();
|
||||||
|
@ -55,7 +55,7 @@ bool ObjList::GetItems()
|
|||||||
do{
|
do{
|
||||||
lsbyte = ResourceData.Data[3+CurrentItem*3];
|
lsbyte = ResourceData.Data[3+CurrentItem*3];
|
||||||
msbyte = ResourceData.Data[3+CurrentItem*3+1];
|
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];
|
RoomNum[CurrentItem] = ResourceData.Data[3+CurrentItem*3+2];
|
||||||
NamePos = ThisNameStart;
|
NamePos = ThisNameStart;
|
||||||
if (NamePos > ResourceData.Size)return false; //object name past end of file
|
if (NamePos > ResourceData.Size)return false; //object name past end of file
|
||||||
|
Loading…
Reference in New Issue
Block a user