Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
修复Bug
Browse files Browse the repository at this point in the history
- 修复当车辆消失时,第一人称相机不会自动退出的问题 (Asu4ni/CitiesSkylines-FPSCamera#54)
  • Loading branch information
will258012 committed Apr 4, 2024
1 parent b13132d commit f0d80df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Game/Object/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public Utils.Infos GetInfos()
public virtual void _MoreDetails(ref Utils.Infos details) { }

public bool IsSpawned => _Is(global::Vehicle.Flags.Spawned);
public bool IsGoingBack => _Is(global::Vehicle.Flags.GoingBack);
public bool IsExporting => _Is(global::Vehicle.Flags.Exporting);
public bool IsImporting => _Is(global::Vehicle.Flags.Importing);
public bool IsReversed => _Is(global::Vehicle.Flags.Reversed);
public bool IsHead => GetVehicle().m_leadingVehicle == 0;
public bool IsEnd => GetVehicle().m_trailingVehicle == 0;
Expand Down

0 comments on commit f0d80df

Please sign in to comment.