Merge pull request #23 from ScatterBox/main

Fix PF_etos to work in Quakespasm
This commit is contained in:
Ian 2023-01-22 22:06:00 -05:00 committed by GitHub
commit 02d6e4dd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -1221,8 +1221,12 @@ static void PF_vtos (void)
void PF_etos (void)
{
//sprintf (pr_string_temp, "entity %i", G_EDICTNUM(OFS_PARM0));
//G_INT(OFS_RETURN) = pr_string_temp - pr_strings;
char *s;
s = PR_GetTempString();
sprintf (s, "entity %i", G_EDICTNUM(OFS_PARM0));
G_INT(OFS_RETURN) = s - pr_strings;
}
static void PF_Spawn (void)