mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
data/fields.qc now tests fieldpointer parameters - requires -std=qcc to build
This commit is contained in:
parent
84bc8f3662
commit
bf161e3919
1 changed files with 3 additions and 6 deletions
|
@ -12,11 +12,8 @@ void(entity) kill = #4;
|
||||||
.float memb;
|
.float memb;
|
||||||
.vector memv;
|
.vector memv;
|
||||||
|
|
||||||
//void(entity a, .float f) printfield = {
|
void(entity a, .float f) printfield = {
|
||||||
// print3("The field is ", ftos(a.f), "\n");
|
print3("The field is ", ftos(a.f), "\n");
|
||||||
//};
|
|
||||||
void(entity x) foo = {
|
|
||||||
print2(ftos(x.mema),"\n");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void() main = {
|
void() main = {
|
||||||
|
@ -37,5 +34,5 @@ void() main = {
|
||||||
print3("x = ", ftos(pawn.memv_x), "\n");
|
print3("x = ", ftos(pawn.memv_x), "\n");
|
||||||
print3("y = ", ftos(pawn.memv_y), "\n");
|
print3("y = ", ftos(pawn.memv_y), "\n");
|
||||||
print3("z = ", ftos(pawn.memv_z), "\n");
|
print3("z = ", ftos(pawn.memv_z), "\n");
|
||||||
foo(pawn);
|
printfield(pawn, memv_z);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue