quakeforge/tools/qfcc/test/old/entity-field2.r
Bill Currie 49ca09a64f Clean up qfcc's test directory.
I don't remember what half these tests were for :/
2012-11-22 21:58:52 +09:00

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;
}