allow more edit commands in multiplayer

(editentity, edittextureslot, editmapmodelslot, editmapsoundslot)

the commands are still not allowed to change anything in coop, but
information retrieval is ok
This commit is contained in:
ac-stef
2017-06-09 21:52:55 +02:00
parent fcb3481e23
commit b2890a3334
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1078,11 +1078,11 @@ COMMAND(deletetextureslot, "iss");
void edittextureslot(int *n, char *scale, char *name) // edit slot parameters != ""
{
string res = "";
EDITMP("edittextureslot");
EDIT("edittextureslot");
if(slots.inrange(*n))
{
Slot &s = slots[*n];
if(*scale || *name)
if((*scale || *name) && !multiplayer("edittextureslot"))
{ // change attributes
float newscale = atof(scale);
_texture(s, *scale ? &newscale : NULL, *name ? name : NULL);