]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't srzone message and message2 together, which was causing another bug. Object...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 30 Oct 2011 10:07:02 +0000 (12:07 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 30 Oct 2011 10:07:02 +0000 (12:07 +0200)
qcsrc/server/mutators/sandbox.qc

index 2de78651f2cb173bdf2d37d83233a9058083ad32..ff59b393d4b50a63f82527e9db780e067a120cf6 100644 (file)
@@ -130,7 +130,8 @@ entity sandbox_ObjectSpawn(float database)
 
                // set public object information
                e.netname = strzone(self.netname); // name of the owner
-               e.message = e.message2 = strzone(strftime(TRUE, "%d-%m-%Y %H:%M:%S")); // creation and edit time
+               e.message = strzone(strftime(TRUE, "%d-%m-%Y %H:%M:%S")); // creation time
+               e.message2 = strzone(strftime(TRUE, "%d-%m-%Y %H:%M:%S")); // last editing time
 
                // set origin and direction based on player position and view angle
                makevectors(self.v_angle);
@@ -608,7 +609,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                                                        return TRUE;
                                        }
 
-                                       // update last edit time
+                                       // update last editing time
                                        if(e.message2)  strunzone(e.message2);
                                        e.message2 = strzone(strftime(TRUE, "%d-%m-%Y %H:%M:%S"));