diff --git a/packages/maps/dev_coal.cgz b/packages/maps/dev_coal.cgz index a85b4739..8279f35c 100644 Binary files a/packages/maps/dev_coal.cgz and b/packages/maps/dev_coal.cgz differ diff --git a/source/src/water.cpp b/source/src/water.cpp index e0886535..1ad1ec9c 100644 --- a/source/src/water.cpp +++ b/source/src/water.cpp @@ -33,7 +33,6 @@ void setwatercolor(const char *r, const char *g, const char *b, const char *a) if(editmode) unsavededits++; } -//COMMANDN(watercolour, setwatercolor, "ssss"); COMMANDF(watercolour, "ssss", (char *r, char *g, char *b, char *a) { if(editmode) setwatercolor(r, g, b, a); }); FVAR(waveheight, 0, 0.3f, 1.0f); @@ -52,10 +51,10 @@ const char *componentnames[] = { "red", "green", "blue", "alpha", "" }; void setwatercolour(char *what, int *v) { int t = getlistindex(what, componentnames, true, -1); - if(t >= 0 && t < 4) + if(t >= 0 && t < 4 && editmode) { hdr.watercolor[t] = *v; - if(editmode) unsavededits++; + unsavededits++; } } COMMAND(setwatercolour, "si");