mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:43:22 +00:00
Re-add import
This commit is contained in:
parent
6902a8f744
commit
f8eb9909f2
3 changed files with 3 additions and 2 deletions
Binary file not shown.
|
@ -401,12 +401,12 @@ enum struct PlayerPropData {
|
||||||
void SetItemBuffer(ArrayList list, int flags = IMF_NoChange) {
|
void SetItemBuffer(ArrayList list, int flags = IMF_NoChange) {
|
||||||
// Cleanup previous buffer if exist
|
// Cleanup previous buffer if exist
|
||||||
this.itemBuffer = list;
|
this.itemBuffer = list;
|
||||||
if(flags != IMF_NoChange) {
|
if(flags != view_as<int>(IMF_NoChange)) {
|
||||||
this.bufferFlags = flags;
|
this.bufferFlags = flags;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void ClearItemBuffer() {
|
void ClearItemBuffer() {
|
||||||
if(this.itemBuffer != null && this.bufferFlags & IMF_DeleteAfterUse) {
|
if(this.itemBuffer != null && this.bufferFlags & view_as<int>(IMF_DeleteAfterUse)) {
|
||||||
PrintToServer("ClearItemBuffer(): arraylist deleted.");
|
PrintToServer("ClearItemBuffer(): arraylist deleted.");
|
||||||
delete this.itemBuffer;
|
delete this.itemBuffer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ ConVar enabledBlacklist;
|
||||||
#include <editor/editor.sp>
|
#include <editor/editor.sp>
|
||||||
#include <editor/props/base.sp>
|
#include <editor/props/base.sp>
|
||||||
#include <editor/natives.sp>
|
#include <editor/natives.sp>
|
||||||
|
#include <editor>
|
||||||
|
|
||||||
public Plugin myinfo = {
|
public Plugin myinfo = {
|
||||||
name = "L4D2 Hats & Editor",
|
name = "L4D2 Hats & Editor",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue