You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
small example where the first conditional return statement will not decompile to the correct result. The operator gets flipped from != to ==
#pragma semicolon 1;
#include <sourcemod>
public OnPluginStart()
{
new client;
if (!IsClientInGame(client) || GetClientTeam(client) != 1) return;
if (!IsClientInGame(client) || GetClientTeam(client) == 1) return;
if (GetClientTeam(client) != 1) return;
}
Both if (!IsClientInGame(client) || GetClientTeam(client) != 1) return; and if (!IsClientInGame(client) || GetClientTeam(client) == 1) return; decompile to
if (!IsClientInGame(client) || GetClientTeam(client) == 1)
{
return void:0;
}
Seems to be due to it being a compound logic statement since the last statement if (GetClientTeam(client) != 1) return; decompiles correctly
small example where the first conditional return statement will not decompile to the correct result. The operator gets flipped from != to ==
Both
if (!IsClientInGame(client) || GetClientTeam(client) != 1) return;
andif (!IsClientInGame(client) || GetClientTeam(client) == 1) return;
decompile toSeems to be due to it being a compound logic statement since the last statement
if (GetClientTeam(client) != 1) return;
decompiles correctlyFull decompilation result:
The text was updated successfully, but these errors were encountered: