Implement @Baker7's suggestion by updating `prvm_edictset` so that when
no new value is provided it will instead call `prvm_edictget`, returning
the current value. Resolves #213
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 <program name> <edict number> <field> <value>\n");
return;