]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2783 (natural/napierian logarithm)
authorLegendaryGuard <rootuser999@gmail.com>
Wed, 21 Dec 2022 16:35:20 +0000 (17:35 +0100)
committerLegendaryGuard <rootuser999@gmail.com>
Wed, 21 Dec 2022 16:35:20 +0000 (17:35 +0100)
qcsrc/common/command/rpn.qc

index 7c944aa0feacc98e6875b38f31f563a769ff80e1..01e7c515f71e1c7fa6ebb7d1b83721e16e5e3045 100644 (file)
@@ -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") {