diff options
| author | aura <nw@moneybot.cc> | 2026-07-13 16:33:40 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-07-13 16:33:40 +0200 |
| commit | 6fd8a952a00d3c9980311ef366fd2304b7be9f67 (patch) | |
| tree | 119c0d2127efe0a02895b41537818832832bbaba /src/overlay.cpp | |
| parent | a6f0c6e2680f247f779b250d9e1dff090a07297c (diff) | |
more reliable teleport detection, fix gauges resetting in pause menu
Diffstat (limited to 'src/overlay.cpp')
| -rw-r--r-- | src/overlay.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/overlay.cpp b/src/overlay.cpp index 75a9194..d1469b2 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -33,7 +33,7 @@ void overlay_handle_teleport( OVERLAY_DATA* d ) { } // teleported - if( !unteleported && !d->teleported && !iszero && !iszero_last && dist > 10.f ) { + if( !unteleported && !d->teleported && !iszero && !iszero_last && dist > 100.f ) { d->teleported = 1; d->tele_pos_x = t->pos_x; d->tele_pos_y = t->pos_y; @@ -86,6 +86,9 @@ void overlay_handle_car_changed( OVERLAY_DATA* d ) { if( !t->extended ) return; + if( !t->car_ordinal ) + return; + U8 car_changed = ( t->car_ordinal != d->car_ordinal || fabsf( t->rpm_max - d->car_rpm_max ) > 1.0f ); if( car_changed ) { d->car_ordinal = t->car_ordinal; |
