]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix rpn not and bitnot operations not working
authorterencehill <piuntn@gmail.com>
Wed, 17 Jul 2024 16:21:28 +0000 (18:21 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 17 Jul 2024 16:21:28 +0000 (18:21 +0200)
qcsrc/common/command/rpn.qc

index 01e7c515f71e1c7fa6ebb7d1b83721e16e5e3045..4327dc84d3b664aa2f84883c68be063fefb064c2 100644 (file)
@@ -191,9 +191,9 @@ void GenericCommand_rpn(int request, int argc, string command)
                                                f = rpn_popf();
                                                rpn_setf(!rpn_getf() != !f);
                                        } else if(rpncmd == "bitnot") {
-                                               rpn_setf(~rpn_popf());
+                                               rpn_setf(~rpn_getf());
                                        } else if(rpncmd == "not") {
-                                               rpn_setf(!rpn_popf());
+                                               rpn_setf(!rpn_getf());
                                        } else if(rpncmd == "abs") {
                                                rpn_setf(fabs(rpn_getf()));
                                        } else if(rpncmd == "sgn") {