Skip to content

Commit 46e7432

Browse files
authored
Fix some cases when wrong FPS and game time were outputted to stats.dmp (#58)
* Add a call to RegisterGameEndTime to set the correct GameEndTime * Use RegisterGameEndTime and SendStatisticsPacket from YRpp * Remove unnecessary comment
1 parent 0d9e846 commit 46e7432

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Spawner/Statistics.cpp

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

205+
DEFINE_HOOK(0x64C84B, ExecuteDoList_SendStatistics_3, 0x5)
206+
{
207+
Game::RegisterGameEndTime();
208+
Game::SendStatisticsPacket();
209+
210+
return 0x64C84B + 0x5;
211+
}
212+
205213
DEFINE_HOOK(0x647AE8, QueueAIMultiplayer_SendStatistics_1, 0x7)
206214
{
207215
enum { Send = 0x647AF5, DontSend = 0x6482A6 };

0 commit comments

Comments
 (0)