=Fixed Roll precedence

This commit is contained in:
Alex
2019-05-08 00:58:07 -04:00
parent 5df0b8cc2e
commit e20d9197c6
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ public class CommandRoll extends Command
private boolean hasPrecendence(char op1, char op2)
{
if ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-'))
if ((op2 == '*' || op2 == '/') && (op1 == '+' || op1 == '-'))
return false;
else
if ((op2 == 'd') && (op1 == '+' || op1 == '-' || op1 == '*' || op1 == '/'))
-1
View File
@@ -1,6 +1,5 @@
package dataStructures;
import core.DatabaseManager;
import core.DatabaseTrackedObject;
import utils.GlobalLog;
import utils.LogFilter;