]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/command/rpn.qc
Merge branch 'drjaska/wep-reload-fixes' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / command / rpn.qc
index 6d2ffe43bc194374c092daa25d07a7b9626170ab..01e7c515f71e1c7fa6ebb7d1b83721e16e5e3045 100644 (file)
@@ -1,5 +1,6 @@
 #include "rpn.qh"
-#include "command.qh"
+
+#include <common/command/command.qh>
 
 
 // ========================================
@@ -212,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") {
@@ -569,7 +570,7 @@ LABEL(skip_difference)
                default:
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " rpn EXPRESSION...");
+                       LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " rpn <expression>");
                        LOG_HELP("    Operator description (x: string, s: set, f: float):");
                        LOG_HELP("    x pop ----------------------------->     : removes the top");
                        LOG_HELP("    x dup -----------------------------> x x : duplicates the top");