Skip to content

Commit

Permalink
Preventwin: Also prevent timelimit (#1476)
Browse files Browse the repository at this point in the history
Debug preventwin states "prevent any win condition". I think the time
limit is a win condition as well but was not prevented with this.
  • Loading branch information
NickCloudAT authored Mar 9, 2024
1 parent dbc0ba9 commit 375d4ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- A crosshair is now also drawn when holding a nade, making it less confusing when looking at entities
- Hides item settings in the equipment editor that are only relevant for weapons
- The binoculars now use the default crosshair as well
- The ConVar "ttt_debug_preventwin" will now also prevent the time limit from ending the round (by @NickCloudAT)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/server/sv_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ local function WinChecker()
return
end

if CurTime() > GetGlobalFloat("ttt_round_end", 0) then
if CurTime() > GetGlobalFloat("ttt_round_end", 0) and not ttt_dbgwin:GetBool() then
EndRound(WIN_TIMELIMIT)
elseif not ttt_dbgwin:GetBool() then
---
Expand Down

0 comments on commit 375d4ec

Please sign in to comment.