From 43af23c3bac5d46b85ed57d16593ac5dfa02f27a Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 16 May 2022 14:08:49 +0200 Subject: [PATCH] Add scr_string_t --- src/game/game.hpp | 2 +- src/game/structs.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/game.hpp b/src/game/game.hpp index 16463b9..4024db5 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -55,7 +55,7 @@ namespace game typedef void (*Scr_AddEntityNum_t)(int entnum, unsigned int classnum); extern Scr_AddEntityNum_t Scr_AddEntityNum; - typedef void (*Scr_Notify_t)(gentity_s* ent, unsigned int stringValue, unsigned int paramcount); + typedef void (*Scr_Notify_t)(gentity_s* ent, scr_string_t, unsigned int paramcount); extern Scr_Notify_t Scr_Notify; typedef void (*Scr_NotifyLevel_t)(unsigned int stringValue, unsigned int paramcount); diff --git a/src/game/structs.hpp b/src/game/structs.hpp index 7a4a8cc..e3be37d 100644 --- a/src/game/structs.hpp +++ b/src/game/structs.hpp @@ -463,6 +463,8 @@ namespace game typedef void (__cdecl * scr_call_t)(int entref); + typedef unsigned __int16 scr_string_t; + enum scriptType_e { SCRIPT_NONE = 0,