PERL ?= perl
FTEQCCFLAGS_WATERMARK ?= -DWATERMARK='"$(shell git describe)"' -DCVAR_POPCON
-FTEQCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -fno-fastarrays $(FTEQCCFLAGS_EXTRA) $(FTEQCCFLAGS_WATERMARK)
+FTEQCCFLAGS ?= -Werror -Wno-Q302 -O3 -Ono-return_only -Ono-assignment -fno-fastarrays $(FTEQCCFLAGS_EXTRA) $(FTEQCCFLAGS_WATERMARK)
FTEQCCFLAGS_PROGS ?=
FTEQCCFLAGS_MENU ?=
--- /dev/null
+void error(...) = #1;
+
+void Oassignments(float foo) // pass 1
+{
+ float bar;
+ bar = 2;
+ bar = (foo ? 0 : (foo & 1));
+ if(bar == 2)
+ error("FTEQCC SUCKS");
+}
+
+void Oreturn_only(float foo) // pass 0
+{
+ if(foo)
+ {
+ return;
+ }
+}
+
+void Oreturn_only_trap(void)
+{
+ error("FTEQCC SUCKS");
+}
next_token = -1;
index = start_index;
+ selection = world;
if(argc > start_index)
{
tmp_number = stof(argv(index));
++index;
}
+ else
+ tmp_number = 0;
}
else // maybe it's ONLY a number?
{
}
else
{
+ selection = world;
FOR_EACH_CLIENT(tmp_player)
if (strdecolorize(tmp_player.netname) == strdecolorize(input))
selection = tmp_player;
entity selection = GetFilteredEntity(input);
float output;
- if(selection) { output = num_for_edict(selection); }
+ output = num_for_edict(selection);
return output;
}
{
rint(42); // do an engine breakpoint on VM_rint so you can get the trace that errnoeously returns startsolid
tracebox(start, PL_MIN, PL_MAX, end, MOVE_NOMONSTERS, world);
- tracebox(p, PL_MIN, PL_MAX, q, MOVE_NOMONSTERS, world);
if(trace_startsolid)
{
}
void GetCvars(float f)
{
- string s;
+ string s = string_null;
if (f > 0)
s = strcat1(argv(f));