Two things

Moderator: GZDoom Developers

Post Reply
User avatar
ace
Posts: 787
Joined: Tue Jun 21, 2005 10:14 am
Location: Just south of the True North

Two things

Post 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. :?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post 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.
User avatar
ace
Posts: 787
Joined: Tue Jun 21, 2005 10:14 am
Location: Just south of the True North

Post 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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No, for compatibility with the existing code it's the last arg.
Costja
Posts: 188
Joined: Mon Oct 18, 2004 3:58 pm
Location: Russia, Moscow
Contact:

Post 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".
User avatar
ace
Posts: 787
Joined: Tue Jun 21, 2005 10:14 am
Location: Just south of the True North

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

Return to “Closed Feature Suggestions [GZDoom]”