45° rotated rectangle clearing / leveling patch
Moderator: OpenTTD Developers
45° rotated rectangle clearing / leveling patch
I made a patch that allows you to clear or level rectangle areas rotated 45°. This allows you to clear or level diagonal stretches of land. That, imho, makes constructing diagonal rails or roads a lot less bothersome.
I've tested the patch myself, and I can't find any problems with it anymore. If you find any, please tell me. Since my windows compiler won't compile with .png support I can't add screenshots. Feel free to add your own
A final note for the coders: As a bonus I added some extra comments here and there in the code in this patch.
[edit]
Oh, before I forget. Use ctrl to use this feature.
I've tested the patch myself, and I can't find any problems with it anymore. If you find any, please tell me. Since my windows compiler won't compile with .png support I can't add screenshots. Feel free to add your own
A final note for the coders: As a bonus I added some extra comments here and there in the code in this patch.
[edit]
Oh, before I forget. Use ctrl to use this feature.
- Attachments
-
- diagonal_clearing.diff
- Diff against r2478
- (18.61 KiB) Downloaded 839 times
Last edited by Diadem on 24 Jun 2005 09:47, edited 3 times in total.
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
how do you control between diagonal and square flatterning?
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
sounds simple. i supose "Activate these options" means "Use this feature".
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
- Heinz Humpelstrumpf
- Engineer
- Posts: 12
- Joined: 19 Mar 2005 12:42
- Location: Holland!
Very nice patch, but I had already made it
http://www.tt-forums.net/viewtopic.php?t=14264
That version of mine is not fixed for the newer releases as there was little interest in it an I have not so much time now.
http://www.tt-forums.net/viewtopic.php?t=14264
That version of mine is not fixed for the newer releases as there was little interest in it an I have not so much time now.
Hmm, two different patches that do the same thing.
Well, my patch is newer (so less conflicts), and seems to work flawlessly. Also, my patch works for the dynamite tool as well. So to be honest, I don't see any reason to choose your patch over mine.
But of course you're welcome to look into my patch and improve it, if you spot anything that you did better than me, coding-wise.
Well, my patch is newer (so less conflicts), and seems to work flawlessly. Also, my patch works for the dynamite tool as well. So to be honest, I don't see any reason to choose your patch over mine.
But of course you're welcome to look into my patch and improve it, if you spot anything that you did better than me, coding-wise.
this is a must have
wonderful!
Everything that makes construction easier is a must have!
How can we novices download it and put it into action?
Everything that makes construction easier is a must have!
How can we novices download it and put it into action?
Magnato, Oslo
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
You can wait until it makes it into the integrated/nightly builds, or you can check the code out of SVN, apply the patch, and compile it yourself. If you want to try the latter, check out http://wiki.openttd.org/index.php/SVN#Source_code
Note that the diff is against revision 2478. You can try to apply it to a later version and it might work (it depends on whether the code this patch is for has been worked on since).
Good luck.
Note that the diff is against revision 2478. You can try to apply it to a later version and it might work (it depends on whether the code this patch is for has been worked on since).
Good luck.
Because I was getting tired of bughunting NFORenum:In a different thread, SirkoZ wrote:Could someone update the 45° to the latest source,
- Attachments
-
- source.rar
- (1.89 MiB) Downloaded 455 times
-
- OTTD-r3011-Diagonal.zip
- (1.09 MiB) Downloaded 477 times
-
- diagonal_clearing_3011.patch
- (18.6 KiB) Downloaded 559 times
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
Rediffed against trunk r9715.
I'm posting the patch this in this old topic, because another recent topic about this patch is now locked.
I'm posting the patch this in this old topic, because another recent topic about this patch is now locked.
- Attachments
-
- diagonal-clearing-r9715.patch
- (17.67 KiB) Downloaded 494 times
- NukeBuster
- Traffic Manager
- Posts: 222
- Joined: 04 Jan 2006 18:16
- Location: Alphen aan den Rijn, The Netherlands
- Contact:
I was hoping someone would rediff this one. Thanks A LOT!micomico wrote:Rediffed against trunk r9715.
I'm posting the patch this in this old topic, because another recent topic about this patch is now locked.
NukeBuster
Transport Empire: The Transport Empire Linux effort
Join the Transport Empire IRC channel: [url]irc://irc.oftc.net/transportempire[/url] !
OpenTTD patch(es): Password at join
Transport Empire: The Transport Empire Linux effort
Join the Transport Empire IRC channel: [url]irc://irc.oftc.net/transportempire[/url] !
OpenTTD patch(es): Password at join
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Reviving this patch is nice.
But will it EVER be fixed?
This huge macro is a big no-no...
Tip for the next patch (or the next patcher) : remove the macro and have a function instead.
Ho... and check comment/code style too...
But will it EVER be fixed?
This huge macro is a big no-no...
Tip for the next patch (or the next patcher) : remove the macro and have a function instead.
Ho... and check comment/code style too...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
How does it look like now?
I think a function would complicate the code more in this case, but i've unfolded the macro and changed the code/comment style.
I think a function would complicate the code more in this case, but i've unfolded the macro and changed the code/comment style.
- Attachments
-
- diagonal-clearing-r9795.patch
- (19.7 KiB) Downloaded 509 times
Who is online
Users browsing this forum: No registered users and 2 guests