]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stop countdown to timeout start if timeout was aborted with timein
authorterencehill <piuntn@gmail.com>
Mon, 7 Mar 2022 13:16:02 +0000 (14:16 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 7 Mar 2022 13:16:02 +0000 (14:16 +0100)
qcsrc/server/command/common.qc

index c2e039f753d952015d0c69f7b7b046ed762e1ad7..056a8e9e6ec7dae7efb4356cc4a2cf8b63f047d3 100644 (file)
@@ -664,6 +664,7 @@ void CommonCommand_timein(int request, entity caller)
                                                        timeout_status = TIMEOUT_INACTIVE;
                                                        timeout_time = 0;
                                                        timeout_handler.nextthink = time;  // timeout_handler has to take care of it immediately
+                                                       Kill_Notification(NOTIF_ALL, NULL, MSG_CENTER, CPID_TIMEOUT);
                                                        bprint(strcat("^7The timeout was aborted by ", GetCallerName(caller), " !\n"));
                                                        return;
                                                }