Skip to content

Commit c42b67c

Browse files
committed
Merge branch 'main' of https://github.com/data-bomb/Silica
2 parents 77aab4f + ba6c226 commit c42b67c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Si_Logging/Si_Logging.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You should have received a copy of the GNU General Public License
4444
using System.Text;
4545
using System.Runtime.CompilerServices;
4646

47-
[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.13", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
47+
[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.14", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
4848
[assembly: MelonGame("Bohemia Interactive", "Silica")]
4949
[assembly: MelonOptionalDependencies("Admin Mod")]
5050

@@ -950,10 +950,15 @@ public static void Prefix(MusicJukeboxHandler __instance, GameMode __0)
950950
{
951951
try
952952
{
953-
MP_Strategy strategyInstance = GameObject.FindObjectOfType<MP_Strategy>();
954-
MP_Strategy.ETeamsVersus versusMode = strategyInstance.TeamsVersus;
953+
string RoundStartLogLine = "World triggered \"Round_Start\" (gamemode \"" + GameMode.CurrentGameMode.ToString().Split(' ')[0] + "\")";
955954

956-
string RoundStartLogLine = "World triggered \"Round_Start\" (gametype \"" + versusMode.ToString() + "\")";
955+
if (GameMode.CurrentGameMode is MP_Strategy)
956+
{
957+
MP_Strategy strategyInstance = GameObject.FindObjectOfType<MP_Strategy>();
958+
MP_Strategy.ETeamsVersus versusMode = strategyInstance.TeamsVersus;
959+
RoundStartLogLine += " (gametype \"" + versusMode.ToString() + "\")";
960+
}
961+
957962
PrintLogLine(RoundStartLogLine);
958963
initializeRound(ref currTiers);
959964

0 commit comments

Comments
 (0)