Ideally that is fast. And it’s a map change anyways so delay doesn’t matter too much there … but yea would be nicer if it could just get the current info and then write that to DB in a thread.
Replying to@zhn
imagine 32 teams being pushed to db
14:22
So I assume the issue is that OnMapChange gets called when sv_map was already updated. So it stores the save game to the new map name. Then the code has to run before that. In the config callback that is about to change the value of sv_map
14:27
Or if that really is the case then OnMapChange should get const char *pOldMap as an argument anyways. That seems useful.
chillerdragon
So I assume the issue is that OnMapChange gets called when sv_map was already updated. So it stores the save game to the new map name. Then the code has to run before that. In the config callback that is about to change the value of sv_map