mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-21 05:55:43 +00:00
23 lines
385 B
C++
23 lines
385 B
C++
#include <stdinc.hpp>
|
|
#include "clientscript_public.hpp"
|
|
|
|
namespace codsrc
|
|
{
|
|
// Restored
|
|
char* TempMalloc(int len)
|
|
{
|
|
return (char *)game::Hunk_UserAlloc(*game::g_user, len, 1);
|
|
}
|
|
|
|
// Restored
|
|
void TempMemoryReset(game::HunkUser* user)
|
|
{
|
|
*game::g_user = user;
|
|
}
|
|
|
|
// Restored
|
|
void TempMemorySetPos(char* pos)
|
|
{
|
|
(*game::g_user)->pos = (int)pos;
|
|
}
|
|
} |