Skip to content

Commit cf32210

Browse files
committed
Fix meetings not working on dedicated servers
1 parent d336ded commit cf32210

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gamemodes/amongus/gamemode/sv_meeting.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ GM.Meeting_Start = (playerTable, bodyColor) =>
7070
\SetEyeAngles point\GetAngles!
7171

7272
time = @ConVarSnapshots.VotePreTime\GetInt! + DISCUSS_SPLASH_TIME
73-
@Net_BroadcastDiscuss playerTable, SysTime! + time
73+
@Net_BroadcastDiscuss playerTable, CurTime! + time
7474

7575
-- Wait for the meeting to start.
7676
timer.Create handle, time, 1, ->
@@ -161,7 +161,7 @@ GM.Meeting_End = =>
161161
maxVotes = voteCount if voteCount > maxVotes
162162

163163
time = @ConVarSnapshots.VotePostTime\GetInt! + (math.min(8, maxVotes) * 0.5 - .1)
164-
@Net_BroadcastMeetingEnd voteTable, SysTime! + time
164+
@Net_BroadcastMeetingEnd voteTable, CurTime! + time
165165

166166
timer.Create handle, time, 1, ->
167167
@Net_BroadcastEject reason, ejected

src/gamemodes/amongus/gamemode/vgui/vgui_meeting.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ meeting.OpenDiscuss = (caller, time) =>
220220
@__megaphoneAnimation = @NewAnimation 2, 0, 0
221221
@__kilAnimation = @NewAnimation 0.35, 0, 0
222222

223-
@__currentAnimation = @NewAnimation time - SysTime!, 0, 0, ->
223+
@__currentAnimation = @NewAnimation math.max(0, time - CurTime!), 0, 0, ->
224224
-- Un-darken all buttons.
225225
for id, voteItem in pairs @__voteItems
226226
voteItem\SetEnabled true
@@ -1057,7 +1057,7 @@ meeting.ApplyVote = (playerTable, remaining) =>
10571057
-- @param results The table of results.
10581058
meeting.End = (results = {}, time = 0) =>
10591059
@__currentState = STATES.proceeding
1060-
@__currentAnimation = @NewAnimation time - SysTime!, 0, 0
1060+
@__currentAnimation = @NewAnimation math.max(0, time - CurTime!) - CurTime!, 0, 0
10611061

10621062
@DisableAllButtons!
10631063
@PurgeConfirms!

0 commit comments

Comments
 (0)