@@ -32,8 +32,10 @@ public void TestSpawnProcess()
3232 IsBot = true
3333 } ;
3434
35+ // add pending spawn
3536 _playerMapping . AddPendingSpawn ( spawnTracker ) ;
3637
38+ // apply car spawn from known player
3739 var metadata = _playerMapping . ApplyCarSpawn ( actorId , commandId ) ;
3840
3941 Assert . AreEqual ( desiredIndex , _playerMapping . PlayerIndexFromActorId ( actorId ) ) ;
@@ -42,19 +44,20 @@ public void TestSpawnProcess()
4244 Assert . IsTrue ( metadata . IsBot ) ;
4345 Assert . IsTrue ( ! metadata . IsCustomBot ) ;
4446
47+ // apply car spawn from unknown player
4548 var metadata2 = _playerMapping . ApplyCarSpawn ( 111 , 222 ) ;
4649 uint ? index = _playerMapping . PlayerIndexFromActorId ( 111 ) ;
4750
4851 Assert . AreEqual ( 0u , _playerMapping . PlayerIndexFromActorId ( 111 ) ) ;
4952 Assert . IsNotNull ( index ) ;
50- Assert . AreEqual ( index , 0u ) ;
53+ Assert . AreEqual ( 0u , index ) ;
54+ Assert . IsNull ( metadata2 . SpawnId ) ;
5155 Assert . AreEqual ( desiredIndex , _playerMapping . PlayerIndexFromActorId ( actorId ) ) ;
5256 Assert . IsTrue ( ! metadata2 . IsBot ) ;
5357 Assert . IsTrue ( ! metadata2 . IsCustomBot ) ;
5458
5559 uint ? index2 = _playerMapping . PlayerIndexFromActorId ( 456 ) ;
5660
5761 Assert . IsNull ( index2 ) ;
58- Assert . AreNotEqual ( index2 , 0u ) ;
5962 }
6063}
0 commit comments