mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
13 lines
249 B
R
13 lines
249 B
R
float (float val, float inc, float max) inc = #0;
|
|
entity self;
|
|
float (.string fld) foo = { return 0; };
|
|
|
|
float (.float fld) inc_field =
|
|
{
|
|
local float new;
|
|
new = inc (self.fld, 2, 3);
|
|
if (new == self.fld)
|
|
return 0;
|
|
self.fld = new;
|
|
return 1;
|
|
}
|