Skip to content

Commit

Permalink
Merge pull request #15 from punteroo/development
Browse files Browse the repository at this point in the history
v3.1.2 release
  • Loading branch information
punteroo authored Nov 4, 2021
2 parents e9cdd4a + 67dc40c commit 62b2102
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
Binary file modified plugins/tf2item_cosmetics.smx
Binary file not shown.
Binary file modified plugins/tf2item_weapons.smx
Binary file not shown.
8 changes: 7 additions & 1 deletion scripting/tf2item_cosmetics.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "3.1.1"
#define PLUGIN_VERSION "3.1.2"

public Plugin myinfo =
{
Expand Down Expand Up @@ -102,6 +102,12 @@ public void OnPluginStart()

// Hook spawns if the ConVar is on
public void OnMapStart() {
// Occupy memory
if (unusualNames == INVALID_HANDLE)
unusualNames = new ArrayList(64);
if (unusualIds == INVALID_HANDLE)
unusualIds = new ArrayList();

if (CV_OnlySpawn.BoolValue)
HookRespawns();
}
Expand Down
8 changes: 7 additions & 1 deletion scripting/tf2item_weapons.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "3.1.1"
#define PLUGIN_VERSION "3.1.2"

public Plugin myinfo =
{
Expand Down Expand Up @@ -127,6 +127,12 @@ public Action CMD_Weapons(int client, int args) {
}

public void OnMapStart() {
// Initialize ArrayLists
if (wPaintNames == INVALID_HANDLE)
wPaintNames = new ArrayList(64);
if (wPaintProtoDef == INVALID_HANDLE)
wPaintProtoDef = new ArrayList();

if (CV_OnlySpawn.BoolValue)
HookRespawns();
}
Expand Down
4 changes: 4 additions & 0 deletions scripting/tf2items/tf2item_base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
/*
* Change-Log
*
* 3.1.2 - 04/11/21
* General
* - Fixed ArrayLists not being properly initialized through map changes.
*
* 3.1.1 - 03/11/21
* General
* - Fixed #13
Expand Down

0 comments on commit 62b2102

Please sign in to comment.