From: terencehill <piuntn@gmail.com>
Date: Wed, 17 Jul 2024 16:21:28 +0000 (+0200)
Subject: Fix rpn not and bitnot operations not working
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0158ed6aae594cb1c5269f463bbd364e71c16dca;p=xonotic%2Fxonotic-data.pk3dir.git

Fix rpn not and bitnot operations not working
---

diff --git a/qcsrc/common/command/rpn.qc b/qcsrc/common/command/rpn.qc
index 01e7c515f..4327dc84d 100644
--- a/qcsrc/common/command/rpn.qc
+++ b/qcsrc/common/command/rpn.qc
@@ -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") {