From: LegendaryGuard Date: Wed, 21 Dec 2022 16:35:20 +0000 (+0100) Subject: Fix #2783 (natural/napierian logarithm) X-Git-Tag: xonotic-v0.8.6~251 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b479c97ca6b0c12b0d2eafbf6865e61815cf4bb8;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2783 (natural/napierian logarithm) --- diff --git a/qcsrc/common/command/rpn.qc b/qcsrc/common/command/rpn.qc index 7c944aa0f..01e7c515f 100644 --- a/qcsrc/common/command/rpn.qc +++ b/qcsrc/common/command/rpn.qc @@ -213,7 +213,7 @@ void GenericCommand_rpn(int request, int argc, string command) } else if(rpncmd == "exp") { rpn_setf(exp(rpn_getf())); } else if(rpncmd == "log") { - rpn_setf(exp(rpn_getf())); + rpn_setf(log(rpn_getf())); } else if(rpncmd == "sin") { rpn_setf(sin(rpn_getf())); } else if(rpncmd == "cos") {