Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions addons/sourcemod/scripting/BossHP.sp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ stock void LoadConfig()
if (strcmp(sMethod, "breakable", false) == 0)
{
char sBreakable[64];
if (!KvConfig.GetString("breakable", sBreakable, sizeof(sBreakable)))
KvConfig.GetString("breakable", sBreakable, sizeof(sBreakable));
if (sBreakable[0] == '\0')
{
g_bConfigError = true;
LogError("Could not find \"breakable\" in \"%s\"", sSection);
Expand All @@ -404,7 +405,8 @@ stock void LoadConfig()
else if (strcmp(sMethod, "counter", false) == 0)
{
char sCounter[64];
if (!KvConfig.GetString("counter", sCounter, sizeof(sCounter)))
KvConfig.GetString("counter", sCounter, sizeof(sCounter));
if (sCounter[0] == '\0')
{
g_bConfigError = true;
LogError("Could not find \"counter\" in \"%s\"", sSection);
Expand All @@ -420,23 +422,26 @@ stock void LoadConfig()
else if (strcmp(sMethod, "hpbar", false) == 0)
{
char sIterator[64];
if (!KvConfig.GetString("iterator", sIterator, sizeof(sIterator)))
KvConfig.GetString("iterator", sIterator, sizeof(sIterator));
if (sIterator[0] == '\0')
{
g_bConfigError = true;
LogError("Could not find \"iterator\" in \"%s\"", sSection);
continue;
}

char sCounter[64];
if (!KvConfig.GetString("counter", sCounter, sizeof(sCounter)))
KvConfig.GetString("counter", sCounter, sizeof(sCounter));
if (sCounter[0] == '\0')
{
g_bConfigError = true;
LogError("Could not find \"counter\" in \"%s\"", sSection);
continue;
}

char sBackup[64];
if (!KvConfig.GetString("backup", sBackup, sizeof(sBackup)))
KvConfig.GetString("backup", sBackup, sizeof(sBackup));
if (sBackup[0] == '\0')
{
g_bConfigError = true;
LogError("Could not find \"backup\" in \"%s\"", sSection);
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/include/BossHP.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Version information
#define BossHP_V_MAJOR "1"
#define BossHP_V_MINOR "4"
#define BossHP_V_PATCH "6"
#define BossHP_V_PATCH "7"

#define BossHP_VERSION BossHP_V_MAJOR..."."...BossHP_V_MINOR..."."...BossHP_V_PATCH

Expand Down