Page 1 of 1

Two things

Posted: Wed Jul 27, 2005 10:10 am
by ace
1: ClearLineSpecial WITH LineID, as opposed to

Code: Select all

SetLineSpecial(LineID, 0, 0, 0, 0, 0, 0);
2: ThrustThing WITH ThingID.

i.e., ClearlineSpecial(LineID); and ThrustThing(tid, angle, force);. Otherwise I can't specify which one I want to be cleared/thrusted. :?

Posted: Wed Jul 27, 2005 10:19 am
by Graf Zahl
1. Why? It can already be done so any other means to do the same is redundant.
2. Already in. ThrustThing has been extended by one arg which passes the tid.

Posted: Wed Jul 27, 2005 10:31 am
by ace
1. I just find doing something like this

Code: Select all

ClearLineSpecial(14);
ClearLineSpecial(17);
ClearLineSpecial(19);
ClearLineSpecial(21);
ClearLineSpecial(28);
would be slightly more convenient.

2. Oh! Okay then. That would be added as a first arg, like in ThrustThingZ, right?

Posted: Wed Jul 27, 2005 10:41 am
by Graf Zahl
No, for compatibility with the existing code it's the last arg.

Posted: Wed Jul 27, 2005 10:45 am
by Costja
ace, I think you always can write:

Code: Select all

function void ClearLineSpecial(int lineid) {
    SetLineSpecial(lineid, 0, 0, 0, 0, 0, 0);
}
And IMHO you can include it into one of zcommon "headers".

Posted: Wed Jul 27, 2005 11:07 am
by ace
Graf Zahl wrote:No, for compatibility with the existing code it's the last arg.
Oh, okay then.
Costja wrote:ace, I think you always can write:

Code: Select all

function void ClearLineSpecial(int lineid) { 
    SetLineSpecial(lineid, 0, 0, 0, 0, 0, 0); 
}
And IMHO you can include it into one of zcommon "headers".
Ah right, didn't think of that. Thanks both! :)