mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Yeah, this wasn't network safe.
This commit is contained in:
parent
ed3569feae
commit
8903a0e185
1 changed files with 2 additions and 3 deletions
|
@ -511,9 +511,8 @@ static int mobj_set(lua_State *L)
|
|||
for (i = 0; i < numskins; i++)
|
||||
if (fastcmp(skins[i].name, skin))
|
||||
{
|
||||
if (mo->player && !R_SkinUnlock(mo->player-players, i))
|
||||
return luaL_error(L, "mobj.skin '%s' not found!", skin);
|
||||
mo->skin = &skins[i];
|
||||
if (!mo->player || R_SkinUnlock(mo->player-players, i))
|
||||
mo->skin = &skins[i];
|
||||
return 0;
|
||||
}
|
||||
return luaL_error(L, "mobj.skin '%s' not found!", skin);
|
||||
|
|
Loading…
Reference in a new issue