Set the server time before calling ge->RunFrame() in SV_SpawnServer()

This fixes an issue where some scripts wouldn't be initialized in time, like those that set AI animations. For example this caused an issue with the plane passenger in e2l1, where the animation would get reset due to a very specific chain of events
This commit is contained in:
smallmodel 2024-09-26 01:16:32 +02:00
parent fc6bffe683
commit 290e45062d
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -794,8 +794,8 @@ void SV_SpawnServer( const char *server, qboolean loadgame, qboolean restart, qb
// run a few frames to allow everything to settle
for( i = 0; i < 3; i++ )
{
ge->RunFrame( svs.time, 100 );
svs.time += 100;
ge->RunFrame( svs.time, 100 );
p = ge->errorMessage;
if( p )