diff options
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; |
