.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...

Forum Thread
{variable} ++ (Groups : qc : Forum : vault() : {variable} ++) Locked
Thread Options
numbersix quake-c coder++
Feb 11 2016 Anchor

If you compile qc with fteqcc, you can take advantage of some typical c code.


is one of these:

float f;

// normal qc
f = f + 1;

// with fteqcc (and maybe others) you can:


// just like regular c
// and entity fields:


However -

If f is a global or local float the progs.dat size is larger by 8 bytes with ++.
This happens every instance. The optimize switch has no effect on this.

progs.dat size stays the same if you do this with entity fields like self.frags.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.