Cube  Diff

Differences From Artifact [ee90f3d4f5]:

To Artifact [87348a3299]:


316
317
318
319
320
321
322

323
324


325
326
327
328
329
330
331
	nquads++;
	addstrip(gltex, curvert - 4, 4);
}

int wx1, wy1, wx2, wy2;

VAR(watersubdiv, 1, 4, 64);

VARF(waterlevel, -128, -128, 127,
    if (!noteditmode()) hdr.waterlevel = waterlevel);



static inline void
vertw(int v1, float v2, int v3, struct sqr *c, float t1, float t2, float t)
{
	vertcheck();
	vertf((float)v1, v2 - (float)sin(v1 * v3 * 0.1 + t) * 0.2f, (float)v3,
	    c, t1, t2);







>
|
|
>
>







316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
	nquads++;
	addstrip(gltex, curvert - 4, 4);
}

int wx1, wy1, wx2, wy2;

VAR(watersubdiv, 1, 4, 64);

VARB(waterlevel, -128, 127, ^ { return hdr.waterlevel; }, ^ (int value) {
	if (!noteditmode())
		hdr.waterlevel = value;
})

static inline void
vertw(int v1, float v2, int v3, struct sqr *c, float t1, float t2, float t)
{
	vertcheck();
	vertf((float)v1, v2 - (float)sin(v1 * v3 * 0.1 + t) * 0.2f, (float)v3,
	    c, t1, t2);