Two things

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Two things

by ace » Wed Jul 27, 2005 11:07 am

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! :)

by Costja » Wed Jul 27, 2005 10:45 am

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".

by Graf Zahl » Wed Jul 27, 2005 10:41 am

No, for compatibility with the existing code it's the last arg.

by ace » Wed Jul 27, 2005 10:31 am

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?

by Graf Zahl » Wed Jul 27, 2005 10:19 am

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.

Two things

by ace » Wed Jul 27, 2005 10:10 am

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. :?

Top