From 40ae5bbd5e143e5beb901f9a2dfb26c1e2d1d815 Mon Sep 17 00:00:00 2001 From: James O'Neill Date: Tue, 17 Dec 2024 20:41:40 +0900 Subject: [PATCH] Allow prvm_edictset to return the current value --- prvm_edict.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prvm_edict.c b/prvm_edict.c index 0bc9bbbd8..a3112398d 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1251,7 +1251,13 @@ static void PRVM_ED_EdictSet_f(cmd_state_t *cmd) prvm_edict_t *ed; mdef_t *key; - if(Cmd_Argc(cmd) != 5) + if (Cmd_Argc(cmd) == 4) { + // Baker: Turn into prvm_edictget when no value(s) provided + PRVM_ED_EdictGet_f(cmd); + return; + } + + if (Cmd_Argc(cmd) != 5) { Con_Print("prvm_edictset \n"); return;