1
0
Fork 0
Commit Graph

72 Commits

Author SHA1 Message Date
peterbell10 13144a08e4
Enable some more clang-tidy linter checks (#4738)
* Avoid inefficient AString -> c_str() -> AString round trip

* Avoid redundant string init expressions

* Avoid unnecessary return, continue, etc.

* Add .clang-format to help with clang-tidy fix-its

* Avoid unnecessary passing by value

* Avoid unnecessary local copying

* Avoid copying in range-for loops

* Avoid over-complicated boolean expressions

* Some violations missed by my local clang-tidy

* Allow unnecessary continue statements

* Add brackets

* Another expression missed locally

* Move BindingsProcessor call into clang-tidy.sh and add space

* Fix pushd not found error

* Different grouping of CheckBlockInteractionRate
2020-05-14 22:15:35 +00:00
Mattes D 9ee47e5999 Using Super. 2020-04-16 20:07:48 +00:00
Mattes D e4ac84a6ab BiomeGen: Changed to use cChunkCoords params. 2019-09-08 20:21:49 +02:00
Mattes D 878393a03d Moved the generator defaults to ComposableGenerator. 2019-09-06 16:12:33 +02:00
peterbell10 950aeffff8
CheckBasicStyle: Check number of empty lines between functions (#4267)
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-26 22:24:36 +01:00
peterbell10 759618b035 Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
LogicParrot 7f5757eccf Reduced unnecessary block updates 2016-04-23 00:30:00 +03:00
Lukas Pioch 5fa9c47f77 Fixed misuse of comma. 2016-03-18 20:20:30 +01:00
LogicParrot ca6ef58b1e Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Samuel Barney 051787dbc2 Switched from using std::max(std::min()) to using Clamp 2015-07-13 14:17:43 -06:00
Samuel Barney db3642de89 Fixed misplaced parens 2015-07-09 14:41:14 -06:00
Samuel Barney aa94a275c6 Fixes compilation failures on MacOSX 10.10
* Replace old c-style casts with c++ casts
* Added `-Wno-error=old-style-cast` to Protocol18x.cpp
2015-07-09 11:15:37 -06:00
Mattes D bebd4de144 Fixed warnings generated by 64-bit MSVC. 2015-07-07 11:50:06 +02:00
tycho 76a3165f09 Fix comments 2015-05-24 14:58:24 +01:00
tycho f2689c4887 Fixed a lot of warnings 2015-05-19 11:50:59 +01:00
worktycho d02c908670 Merge pull request #1786 from mc-server/pipelineSyntax
Added pipelining syntax for generators
2015-03-21 21:08:33 +00:00
tycho 430cbb8c83 Changed pipeline character from >> to | 2015-03-11 10:42:45 +00:00
Tycho ff785188f9 Fixed Sequence Generator for IntGen 2015-03-10 22:19:03 +00:00
Tycho bdea6c92b3 Fixed Style
Still fails CheckBasicStyle.lua dua to issue with rvalue references and templates
2015-03-01 14:51:07 +00:00
Tycho 3f61255fe1 Added pipelining syntax for generators 2015-03-01 14:27:01 +00:00
Mattes D 780a9ae9d1 Added Steppy height generator. 2015-03-01 12:13:39 +01:00
Mattes D 6ec5e8caa7 Replaced atoi() with StringToInteger(). 2015-01-27 14:53:32 +01:00
Kirill Kirilenko 0288e90e0b Fixed defect #73101 in Coverity list. 2015-01-23 19:06:26 +03:00
Mattes D c5f3663bea Fixed a missing endline. 2014-11-03 11:48:03 +01:00
Mattes D f5c4a6a27d Added a (disabled) perf test for biome generators. 2014-11-03 10:36:12 +01:00
Mattes D d5b6353493 Grown biomes: Unified with GrownProt biomes.
Also fixed a Zoom filter randomness.
2014-11-02 16:36:59 +01:00
Mattes D d868346491 GrownProt: Added the rest of rare and M biomes. 2014-11-01 21:01:33 +01:00
Mattes D 4873890cfb GrownProt biome gen: Added biome edges. 2014-11-01 16:37:56 +01:00
Mattes D 13f0e93d69 GrownProt biomes: added alterations. 2014-10-31 12:52:07 +01:00
Mattes D 8c04abf9aa QtBiomeVisualiser: Added a prototyping int generator flavor.
This generator is easier to manipulate, since it doesn't require rewriting the sizes in the template parameters. On the other hand, it doesn't optimize so well, so it's a bit slower.
2014-10-30 16:24:35 +01:00
Mattes D f34b1291be Grown biomes: made biomes smaller, made beaches smaller. 2014-10-29 15:28:27 +01:00
Mattes D 7d08d34693 Removed too advanced C++11 features.
We need to keep gcc 4.6 compatibility; these features were not implemented in that version yet.
2014-10-27 09:35:21 +01:00
Mattes D 74df4618de BioGenGrown: Smaller biomes, add land to map center. 2014-10-26 22:56:02 +01:00
Mattes D 7e1d603080 Added new biomegen: Grown 2014-10-26 19:58:16 +01:00
Mattes D 449d08cb3d Merged IniFile into main MCS sources. 2014-10-23 15:15:10 +02:00
Tiger Wang a26541a7c3 En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Mattes D 262e6d06aa TwoLevel BioGen: fixed swapped inside and outside biomes. 2014-10-19 16:07:29 +02:00
Mattes D e0cfbc4d85 Generator: Rewritten to use SharedPtrs. 2014-10-19 14:01:59 +02:00
Mattes D 799ae87d3f BioGen: Fixed a compiler warning. 2014-10-16 11:00:30 +02:00
madmaxoft 113b54aefd BioGen: TwoLevel is now fully settable in INI. 2014-09-27 22:01:47 +02:00
madmaxoft e5293706de TwoLevel BioGen: reads params from INI file. 2014-09-25 20:47:29 +02:00
madmaxoft 6f5aa487ed Voronoi biomegen: Added JitterSize and OddRowOffset. 2014-09-17 23:24:22 +02:00
Mattes D 60e235362c Fixed style. 2014-09-05 22:07:13 +02:00
DayBr3ak d2bacc34f6 change to linear calculation 2014-09-03 18:48:47 +02:00
DayBr3ak 5a608dc279 adapting format 2014-09-03 02:53:21 +02:00
DayBr3ak b8636ee53a forgot this one 2014-09-02 18:18:43 +02:00
DayBr3ak 82911f3662 opting for size_t 2014-09-02 18:13:24 +02:00
DayBr3ak 29811c4f21 fixing memory leak 2014-09-02 18:05:53 +02:00
DayBr3ak ac4ec5117d changing implem, using vectors 2014-09-02 10:54:26 +02:00
DayBr3ak 77409d47eb adding the multicache behavior 2014-09-02 01:13:19 +02:00