Commit Graph

60 Commits

Author SHA1 Message Date
rubidium caf3bda626 (svn r26998) -Change: account for the map size when determining the maximum height of the landscape; a 24 high mountain at 64x64 leaves barely any usable space, but on a 4096x4096 it's just a "small" bump (ic111) 2014-10-12 10:55:49 +00:00
rubidium 92553c9c6b (svn r26997) -Fix/codechange: use signed integers for TGP's internal map size and X/Y variables due to X/Y in comparisons occasionally getting smaller than 0 due to subtractions 2014-10-12 10:49:29 +00:00
rubidium 2a786aa264 (svn r26946) -Fix (r26945): MSVC doesn't seem to have round yet 2014-10-02 17:40:45 +00:00
rubidium a14fad13ed (svn r26945) -Fix-ish: better scaling of the "cells" in which variety distribution happens for non-square maps (attempt to make reasonably square areas) 2014-10-02 17:32:45 +00:00
rubidium 8385e6268e (svn r26940) -Fix (r26937): comparing values of different signedness 2014-09-29 19:21:55 +00:00
rubidium 61c3e8e848 (svn r26939) -Cleanup: some bits of coding style cleanup for TGP 2014-09-29 19:04:34 +00:00
rubidium 08aaabcbb4 (svn r26938) -Codechange: simplify RandomHeight significantly 2014-09-29 19:04:02 +00:00
rubidium 2b0a1f7beb (svn r26937) -Cleanup: simplify the logic for heightmap generation in TGP; instead of performing more and more loops the larger the map becomes to elaborately set the height to 0 many times, just run it for each frequency and be done with it 2014-09-29 18:18:21 +00:00
rubidium 135b3f635d (svn r26932) -Codechange: replace some constants with less weird looking constants and simplify clamping by actually using Clamp 2014-09-27 20:39:32 +00:00
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 2014-04-23 20:13:33 +00:00
rubidium 2e54c8fdfa (svn r26056) -Fix: a number of possibly uninitialised variables 2013-11-22 21:50:43 +00:00
zuu b35b8aa5bb (svn r25848) -Codechange: Refactor check for if a tile is not an edge tile to new IsInnerTile method (cirdan, LordAro) 2013-10-12 22:03:13 +00:00
alberth 732e073261 (svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb) 2012-12-01 13:12:39 +00:00
alberth 0849fb8d36 (svn r24535) -Doc: Two additions, lots of small spelling fixes, and some Doxygen improvements. 2012-09-21 09:47:21 +00:00
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 2012-01-03 21:32:51 +00:00
rubidium df16ebd730 (svn r23595) -Codechange: add comma after last enum to get a more uniform coding style 2011-12-19 17:48:04 +00:00
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 2010-10-30 17:51:07 +00:00
terkhen bce6328ed0 (svn r20833) -Fix (r20832): Remove a warning. 2010-09-20 19:15:31 +00:00
terkhen e90930e572 (svn r20832) -Feature: Allow to select a custom percentage of water in the map generation window (based on patch by CommanderZ). 2010-09-20 18:56:35 +00:00
yexo 241d705406 (svn r20474) -Cleanup: remove some unused code 2010-08-12 21:36:43 +00:00
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
yexo 0baa5ff944 (svn r19352) -Fix (r19332): MSVC doesn't have M_PI in math.h 2010-03-06 15:30:40 +00:00
rubidium e5ebae1085 (svn r18565) -Fix [FS#3391] (r18541): some older GCC warn about implicitly casting from floats to integers 2009-12-20 14:18:22 +00:00
peter1138 99bb3a95b4 (svn r18541) -Feature: Additional map variety option for TGP landscape generator. Evolved from curve map idea from Zephyris. 2009-12-19 18:00:38 +00:00
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
smatz 32cbe57178 (svn r17692) -Codechange: minor coding style fixes 2009-10-04 17:10:57 +00:00
rubidium e9624fe0cc (svn r17682) -Codechange: remove erroneous space before some commas 2009-10-02 15:13:15 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
smatz e707c82412 (svn r17131) -Codechange: apply coding style to some switch statements 2009-08-09 14:40:34 +00:00
smatz d73c1fa7bf (svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails 2009-02-24 20:59:17 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
Yexo 08670da54a (svn r15212) -Feature [FS#2566]: Change the dropdown box where you can chose which edges will be water to 4 pushbuttons (based on patch by planetmaker). 2009-01-23 00:18:27 +00:00
Yexo db3ee34b44 (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 2009-01-21 02:31:55 +00:00
glx c7959ce2a9 (svn r14840) -Cleanup: remove duplicate includes 2009-01-04 21:02:59 +00:00
frosch 4cb2fba8fb (svn r13671) -Cleanup: Zeros for sell. 2008-07-01 18:56:40 +00:00
frosch e9e453cf8b (svn r13667) -Documentation: Comment 'tgp.cpp' a bit. Based on patch by CommanderZ. 2008-06-30 19:54:03 +00:00
frosch 06049563da (svn r13648) -Cleanup (r5303): Amplitudes should be amplitudes and not amplitudes/16. 2008-06-27 20:59:30 +00:00
frosch 3e5f10fca6 (svn r13645) -Codechange: Convert a macro into an inlined member function. 2008-06-27 15:01:18 +00:00
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 2008-05-29 15:13:28 +00:00
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 2008-05-25 22:36:44 +00:00
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
rubidium 6c20f77330 (svn r13228) -Codechange: split console.h. 2008-05-24 10:15:06 +00:00
rubidium 7ccda80b0b (svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers. 2008-05-07 09:07:19 +00:00
smatz a5c456e75e (svn r12690) -Cleanup: remove unused table from tgp.cpp 2008-04-13 17:27:36 +00:00
rubidium dc87b05e8c (svn r11834) -Codechange: only include settings_type.h if needed. 2008-01-13 14:37:30 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium 2786d789a1 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 2007-12-26 11:45:43 +00:00
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 2007-12-25 09:48:53 +00:00