File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/components/Plugins/src Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,8 @@ void SetupLuaServer(luacpp::LuaState *state, Plugin *plugin)
2929 {
3030 if (!scripting_Server_IsMapValid (map)) return ;
3131 scripting_Server_ExecuteCommand (string_format (" map %s" , map).c_str ()); })
32-
33- .DefMember (" IsPistolRound" , [](LuaServerClass *base) -> bool
34- { return scripting_Server_IsPistolRound (); });
32+ .DefMember (" IsPistolRound" , [](LuaServerClass *base) -> bool
33+ { return scripting_Server_IsPistolRound (); });
3534
3635 state->DoString (" server = Server()" );
3736}
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ SMM_API const char *scripting_Server_GetMapName()
2626 return res;
2727}
2828
29-
3029SMM_API bool scripting_Server_IsPistolRound ()
3130{
3231 if (g_pGameRules == nullptr )
@@ -35,8 +34,6 @@ SMM_API bool scripting_Server_IsPistolRound()
3534 return (g_pGameRules->m_totalRoundsPlayed () == 0 || (g_pGameRules->m_bSwitchingTeamsAtRoundReset () && g_pGameRules->m_nOvertimePlaying () == 0 ) || g_pGameRules->m_bGameRestart ());
3635}
3736
38-
39-
4037SMM_API bool scripting_Server_IsMapValid (const char *map)
4138{
4239 if (map == nullptr )
You can’t perform that action at this time.
0 commit comments