]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix wrong strreplace usage
authorRudolf Polzer <divverent@alientrap.org>
Wed, 6 Apr 2011 20:02:44 +0000 (22:02 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 6 Apr 2011 20:02:44 +0000 (22:02 +0200)
qcsrc/server/gamecommand.qc

index b0085224fadb3064e9aef6a817c1c2a6fc263222..daec8754e2c02e9534a1316cfd4733b924e3da8f 100644 (file)
@@ -779,10 +779,10 @@ void GameCommand(string command)
                                if(argc == 4)
                                {
                                        s = argv(2);
-                                       s = strreplace(s, "\n", "");
-                                       s = strreplace(s, "\\", "\\\\");
-                                       s = strreplace(s, "$", "$$");
-                                       s = strreplace(s, "\"", "\\\"");
+                                       s = strreplace("\n", "", s);
+                                       s = strreplace("\\", "\\\\", s);
+                                       s = strreplace("$", "$$", s);
+                                       s = strreplace("\"", "\\\"", s);
                                        stuffcmd(client, sprintf("\ninfobar %f \"%s\"\n", stof(argv(3)), s));
                                }
                                else