mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 02:53:20 +00:00
Fix some bugs
This commit is contained in:
parent
e8236a4aab
commit
65d8d01927
4 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ bool LoadConfigForMap(const char[] map) {
|
|||
validSets.Clear();
|
||||
|
||||
static char buffer[64];
|
||||
if(StrEqual(currentSet, "default") && kv.GetString("defaultset", buffer, sizeof(buffer))) {
|
||||
if(StrEqual(currentSet, "default") && kv.GetString("defaultset", buffer, sizeof(buffer)) && buffer[0] != '\0') {
|
||||
strcopy(currentSet, sizeof(currentSet), buffer);
|
||||
}
|
||||
PrintToServer("[H&S] Loading config data for set %s on %s", currentSet, map);
|
||||
|
|
|
@ -263,8 +263,6 @@ void SetPeekCamActive(int client, bool active) {
|
|||
AcceptEntityInput(seekerCam, "Enable", client); // Need to always activate before deactivating to fix a semi-common bug
|
||||
if(!active) {
|
||||
AcceptEntityInput(seekerCam, "Disable", client);
|
||||
AcceptEntityInput(seekerCam, "Kill");
|
||||
seekerCam = INVALID_ENT_REFERENCE;
|
||||
}
|
||||
} else {
|
||||
PrintToServer("WARN: SetPeekCamActive(%d, %b) when seekerCam invalid", client, active);
|
||||
|
|
|
@ -269,6 +269,8 @@ public Action Timer_StopPeekCam(Handle h) {
|
|||
SetPeekCamActive(i, false);
|
||||
}
|
||||
}
|
||||
AcceptEntityInput(seekerCam, "Kill");
|
||||
seekerCam = INVALID_ENT_REFERENCE;
|
||||
}
|
||||
|
||||
public void Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue