From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 14:39:43 +0000 (+0200) Subject: data/fields.qc now tests fieldpointer parameters - requires -std=qcc to build X-Git-Tag: 0.1-rc1~240 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf161e391974d5c030deaff10604bce1e2b6c1c4;p=xonotic%2Fgmqcc.git data/fields.qc now tests fieldpointer parameters - requires -std=qcc to build --- diff --git a/data/fields.qc b/data/fields.qc index dde80e1..379f428 100644 --- a/data/fields.qc +++ b/data/fields.qc @@ -12,11 +12,8 @@ void(entity) kill = #4; .float memb; .vector memv; -//void(entity a, .float f) printfield = { -// print3("The field is ", ftos(a.f), "\n"); -//}; -void(entity x) foo = { - print2(ftos(x.mema),"\n"); +void(entity a, .float f) printfield = { + print3("The field is ", ftos(a.f), "\n"); }; void() main = { @@ -37,5 +34,5 @@ void() main = { print3("x = ", ftos(pawn.memv_x), "\n"); print3("y = ", ftos(pawn.memv_y), "\n"); print3("z = ", ftos(pawn.memv_z), "\n"); - foo(pawn); + printfield(pawn, memv_z); };