]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Fixes to key handling
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index 568d2f5aee9aa3ce80e9c184386e317a78f14743..8cb87678223c0c6348c875af14c4d773366997bb 100644 (file)
@@ -934,7 +934,7 @@ float door_check_keys(void) {
                                if (p.key_door_messagetime <= time) {
                                        play2(other, "misc/talk.wav");
                                        centerprint(other, "You don't have the silver key!");
-                                       p.wait = p.key_door_messagetime + 2;
+                                       p.key_door_messagetime = time + 2;
                                }
                                return FALSE;
                        } else {