Skip to content

Commit

Permalink
lua: cleanup tostring() function of edict value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 9, 2023
1 parent 1ba5e42 commit 5386a06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Quake/ls_edict.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,10 @@ static int LS_value_edict_tostring(lua_State* state)
edict_t* ed = LS_GetEdictFromUserData(state);

if (ed == NULL)
{
lua_pushstring(state, "invalid edict");
return 1;
}
else
lua_pushfstring(state, "edict %d: %s", NUM_FOR_EDICT(ed), SV_GetEntityName(ed));

lua_pushfstring(state, "edict %d: %s", NUM_FOR_EDICT(ed), SV_GetEntityName(ed));
return 1;
}

Expand Down

0 comments on commit 5386a06

Please sign in to comment.