Skip to content

Commit 63779d0

Browse files
committed
Add a call to RegisterGameEndTime to set the correct GameEndTime
1 parent 0d9e846 commit 63779d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Spawner/Statistics.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,15 @@ DEFINE_HOOK(0x64C81E, ExecuteDoList_SendStatistics_2, 0x6)
202202
: DontSend;
203203
}
204204

205+
// add a call to RegisterGameEndTime here to set the correct GameEndTime
206+
DEFINE_HOOK(0x64C84B, ExecuteDoList_SendStatistics_3, 0x5)
207+
{
208+
CALL(0x6C8820); // RegisterGameEndTime
209+
CALL(0x6C6F50); // SendStatisticsPacket
210+
211+
return 0x64C84B + 0x5;
212+
}
213+
205214
DEFINE_HOOK(0x647AE8, QueueAIMultiplayer_SendStatistics_1, 0x7)
206215
{
207216
enum { Send = 0x647AF5, DontSend = 0x6482A6 };

0 commit comments

Comments
 (0)