mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
Fix NRE in minimap when camera is null
This commit is contained in:
parent
47c7c5a694
commit
5a4d82de13
2 changed files with 4 additions and 4 deletions
|
@ -552,7 +552,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
lerpedZoomCounter = 0;
|
||||
}
|
||||
|
||||
float relAngle = Camera.main.transform.eulerAngles.y;
|
||||
float relAngle = Camera.main != null ? Camera.main.transform.eulerAngles.y : 0f;
|
||||
|
||||
if (maskTransform != null)
|
||||
maskTransform.localRotation = Quaternion.Euler(0, 0, relAngle);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- **Async geometry loading** - currently, geometry is loaded synchronously, which seems like the main performance bottleneck
|
||||
|
||||
- Make everything networked
|
||||
- Multiplayer - see [Multiplayer.md](Multiplayer.md)
|
||||
|
||||
- Map - better info area ; input mouse position is not always correct ; see [Map.md](Map.md) ;
|
||||
|
||||
|
@ -18,12 +18,12 @@
|
|||
|
||||
- Crouching: adjust camera aim offset ? ;
|
||||
|
||||
- Add option to disable camera
|
||||
|
||||
- don't fade high LOD meshes
|
||||
|
||||
- Validate path to GTA ?
|
||||
|
||||
- Split code into separate assemblies (using asmdef files)
|
||||
|
||||
- Anims must be played by their name
|
||||
|
||||
- Vehicles window: it's too slow - use pages ; display additional info ;
|
||||
|
|
Loading…
Reference in a new issue