summaryrefslogtreecommitdiffstats
path: root/src/Map.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-6/+6
* BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-08-28ChunkMap: do not wantonly make empty chunksTiger Wang1-5/+0
- Removed calls that constructed an empty chunk, found it was invalid, and did nothing with said chunk Partially addresses #2324
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-1/+1
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2019-08-11Fix building with clang 8.0 (#4346)Bond-0091-5/+0
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-1/+1
Add check for number of empty lines between functions and fix the corresponding failures
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-30/+12
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-12/+30
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-30/+12
2017-06-13FastRandom rewrite (#3754)peterbell101-3/+1
2016-11-18Removed ClientHandle.h dependencies from common headers.Mattes D1-8/+9
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-08-12Fix old style casts and implicit conversionsMatti Hänninen1-19/+18
2015-07-14Improved mapsTiger Wang1-359/+92
2015-05-19Make -Werror disabling file onlytycho1-3/+3
Ad fix a load of warnings
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D1-1/+1
2015-03-14Fixed grass spread, closes #1743Tiger Wang1-3/+1
- Removed the salt parameter in cFastRandom functions, it wasn't doing what we thought it was following the move to C++11
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-9/+9
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-9/+9
2014-09-131.8: Fixed maps.Howaner1-4/+4
2014-07-07Implemented trapped chests & othersTiger Wang1-2/+2
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-03-14Fixed a few unneeded breaksTycho1-1/+3
2014-02-27Fixed crash and some warnings in map handling.madmaxoft1-0/+2
Fixes #728.
2014-02-24Fixed MCServer not compiling with C++03 compilersSTRWarrior1-7/+7
2014-02-23Maps: Improvementsandrew1-3/+9
2014-02-22Documented and exported cMapandrew1-6/+43
2014-02-22Semi-working implementation of cMap::UpdatePixelandrew1-11/+77
2014-02-21Split cMap::UpdateClientandrew1-50/+76
2014-02-19cMapDecorator: Implemented random rotationsandrew1-10/+15
2014-02-19Documented cMapandrew1-4/+8
2014-02-18Map decorators; Map clientsandrew1-23/+209
2014-02-17Map item handler; Fixed several bugsandrew1-11/+52
2014-02-15cMap::UpdateRadiusandrew1-11/+101
2014-02-14EmptyMap item handlerandrew1-4/+4
2014-02-14Send map when selectedandrew1-18/+29
2014-02-13IDCount Serializationandrew1-0/+18
2014-02-13Implementation of in-game mapsandrew1-0/+149