File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -269,16 +269,19 @@ void HealthbarRenderer::UpdateState()
269
269
D3DXMatrixInverse (&projMat, NULL , viewMat);
270
270
D3DXMatrixMultiply (&projMat, &projMat, viewProjMat);
271
271
272
+ pursuitActive = false ;
272
273
void * soundAi = DEREF (0x993cc8 , 0 );
273
274
if (soundAi) {
274
275
void * pursuitAi = DEREF (soundAi, 0x130 );
275
276
pursuitActive = pursuitAi != nullptr ;
276
- if (pursuitActive) {
277
- pursuitActiveCounter += *deltaTime;
278
- }
279
- else {
280
- pursuitActiveCounter = 0 ;
281
- }
277
+ }
278
+
279
+ if (pursuitActive) {
280
+ pursuitActiveCounter += *deltaTime;
281
+ }
282
+ else {
283
+ pursuitActiveCounter = 0 ;
284
+ copCars.clear ();
282
285
}
283
286
284
287
// Figure out if "Game moment camera" is enabled in the options to determine when to start showing healthbars on pursuit start
You can’t perform that action at this time.
0 commit comments