From a169e16508bed6b850450d17056433a234fa29f6 Mon Sep 17 00:00:00 2001 From: William Miller Date: Sun, 17 Dec 2023 22:38:29 -0300 Subject: Fix restricting Aegis Rank reset functionality to MP (#771) Move compiler flag so that `RecalculateHighestTitanFDLevel` is MP only. --- Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut index 8751a250..2ca051cf 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_utility_all.gnut @@ -1542,6 +1542,7 @@ array function GetAvailableTitanRefs( entity player ) /// Gets the highest Titan FD level and stores it in the corresponding persistent var. /// * `player` - The player entity to perform the action on +#if MP void function RecalculateHighestTitanFDLevel( entity player ) { int enumCount = PersistenceGetEnumCount( "titanClasses" ) @@ -1556,7 +1557,6 @@ void function RecalculateHighestTitanFDLevel( entity player ) player.SetPersistentVar( "fdStats.highestTitanFDLevel", highestAegis ) } -#if MP string function GetTitanRefForLoadoutIndex( entity player, int loadoutIndex ) { TitanLoadoutDef loadout = GetTitanLoadoutFromPersistentData( player, loadoutIndex ) -- cgit v1.2.3