mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +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++)
|
for (i = 0; i < numskins; i++)
|
||||||
if (fastcmp(skins[i].name, skin))
|
if (fastcmp(skins[i].name, skin))
|
||||||
{
|
{
|
||||||
if (mo->player && !R_SkinUnlock(mo->player-players, i))
|
if (!mo->player || R_SkinUnlock(mo->player-players, i))
|
||||||
return luaL_error(L, "mobj.skin '%s' not found!", skin);
|
mo->skin = &skins[i];
|
||||||
mo->skin = &skins[i];
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return luaL_error(L, "mobj.skin '%s' not found!", skin);
|
return luaL_error(L, "mobj.skin '%s' not found!", skin);
|
||||||
|
|
Loading…
Reference in a new issue