X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Frpn.qc;h=828fbdf7dd7850004caa793a342896077a5530e4;hb=5f12d827aec80b869ab1f213b14bfaff7dc7d6b5;hp=1ca075bbbdf1f614652985039cf575182f13a149;hpb=737346fcfbe5912ff5de24c2f22c0dbd894429a6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/rpn.qc b/qcsrc/common/command/rpn.qc index 1ca075bbbd..828fbdf7dd 100644 --- a/qcsrc/common/command/rpn.qc +++ b/qcsrc/common/command/rpn.qc @@ -1,5 +1,5 @@ -#include "command.qh" #include "rpn.qh" +#include "command.qh" // ======================================== @@ -164,7 +164,7 @@ void GenericCommand_rpn(float request, float argc, string command) rpn_setf(f2 - f * floor(f2 / f)); } else if(rpncmd == "pow" || rpncmd == "**") { f = rpn_popf(); - rpn_setf(pow(rpn_getf(), f)); + rpn_setf(rpn_getf() ** f); } else if(rpncmd == "bitand" || rpncmd == "&") { f = rpn_popf(); rpn_setf(rpn_getf() & f); @@ -437,7 +437,7 @@ void GenericCommand_rpn(float request, float argc, string command) if(argv(i) == argv(j)) goto skip_union; s = strcat(s, " ", argv(i)); - :skip_union +LABEL(skip_union) } if(substring(s, 0, 1) == " ") s = substring(s, 1, 99999); @@ -480,7 +480,7 @@ void GenericCommand_rpn(float request, float argc, string command) if(argv(i) == argv(j)) goto skip_difference; s = strcat(s, " ", argv(i)); - :skip_difference +LABEL(skip_difference) } if(substring(s, 0, 1) == " ") s = substring(s, 1, 99999);