![]() |
#31 | |
In Flames
Join Date: Jan 2006
Posts: 1,154
![]() |
![]() Quote:
So the first object will leak. Havent looked at the code though ..so i dunno if this applies to your code aswell. |
|
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#32 |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() I don't get the double frees when I test it though..
|
![]() |
![]() |
![]() |
#33 | |
Procrastination Incarnate
Development Director
|
![]() Quote:
As for the spell, TimedXefx is still an issue. It hasn't yet gone through our review process yet so you can't use it in a spell you submit here. Since it's such a simple library, I'll review it right now: The struct data is useless, you could have just as well attached the xefx to the timer directly. The end result is such a short code that you could just as well inline it into the spell entirely and thus avoid me telling you again that you can't use it. Also, you should remove the earlier versions of the spell from the post since only the last version will actually be the one to be approved. Last edited by Anitarf : 03-31-2009 at 06:55 PM. |
|
![]() |
![]() |
![]() |
#34 | |
retired coder | real ilfe
|
![]() Quote:
On the other hand, if you don't care about that problem, than it is also not my problem as well. The fact is that (at that time) I got an error message I didn't like and I reported in a friendly way. By ignoring my report you risk your credibility as a mod, because if someone tests this spell in the future and if the tester finds the problem again, the tester will think that Anitarf is a nab mod because he approved a spell with a problem. I see the version was updated, I am happy by that, I didn't test the latest version yet, so I can not say if the problem was fixed or not. I will just remove myself from this thread, I can obviously see my reports are not welcome here. Btw, Thx to ako for the explanation of the error. I would give you rep++ but it looks like I have to spread some more rep =S Last edited by Flame_Phoenix : 03-31-2009 at 08:16 PM. |
|
![]() |
![]() |
![]() |
#35 | ||
Procrastination Incarnate
Development Director
|
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#36 | |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() Quote:
Right'o, I'll optimize the library. Should I submit it as another resource instead, might come in handy for those who want to use xefx but are stuck with TimedEffects, or maybe should I just tack in the code with moyack's TimedEffects thread? Again, I'm sorry if this bothers you, but I kinda disagree with inlining it. What if someone wants to use two variations of it? Even though inlining only takes up very few lines, it is still redundant code, and I might as well just use a library for added modularity. Last edited by FriendlyPsycho : 04-01-2009 at 04:14 AM. |
|
![]() |
![]() |
![]() |
#37 |
Procrastination Incarnate
Development Director
|
![]() As I said, you should inline it. It's not much of a library once you write it correctly, and it wouldn't get approved as such. Modularity is all nice and good for coding but when it comes to the end user having a ton of libraries in the map can be a pain.
__________________ |
![]() |
![]() |
![]() |
#38 |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() Ah, now I see your point.
Updated! Sorry for making your job any harder by trying to prove some of my points. My bad :P |
![]() |
![]() |
![]() |
#39 |
Procrastination Incarnate
Development Director
|
![]() Just a few minor issues remaining:
__________________
|
![]() |
![]() |
![]() |
#40 |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() 1.) Ok done.
__________________2.) What GUI global? The gg_trg thing? Well, it is created anyways so I just used that. 3.) Done. 4.) Done. 5.) Removed usage. 6.) Um I don't need to? Pretty sure about that.. 7.) Oops, forgot to clean that up heh. Done. First post/spell updated to conform to the aforementioned stuff. |
![]() |
![]() |
![]() |
#41 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
These gg stuff and for example not using a initializer but calling InitTrig are all wrong, they are GUI-dependent, we can get better than that... relying on such a variable or InitTrig just makes your code less portable, it also makes it harder to use the template twice (a la JESP ...) |
|
![]() |
![]() |
![]() |
#42 |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() I do use an initializer, scope Overgrowth initializer init
__________________Last edited by FriendlyPsycho : 04-03-2009 at 06:00 AM. |
![]() |
![]() |
![]() |
#43 | |||
Procrastination Incarnate
Development Director
|
![]() Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#44 |
User
Join Date: Feb 2009
Posts: 109
![]() |
![]() Ok then. Updated the first post.
__________________ |
![]() |
![]() |
![]() |
#45 |
Procrastination Incarnate
Development Director
|
![]() The IsUnitInRangeXY check should be in the enum function, not the TargetsAllowed function. There's no need for this condition to be calibrateable, it's an entirely technical part of the code that shouldn't be in the calibration section. Also, like I said, there's no need for special variables to pass the x and y coordinates to the enum function when you could easily use the GG_Distance's x and y members to do that.
__________________The rest looks good. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|