Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable some more clang-tidy linter checks (#4738) | peterbell10 | 2020-05-15 | 1 | -9/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 2020-04-03 | 1 | -0/+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 | ||||
* | CheckBasicStyle: Check number of empty lines between functions (#4267) | peterbell10 | 2018-07-26 | 1 | -0/+6 |
| | | | | Add check for number of empty lines between functions and fix the corresponding failures | ||||
* | Remove double includes part 2 (#3890) | peterbell10 | 2017-08-03 | 1 | -2/+0 |
| | |||||
* | FastRandom rewrite (#3754) | peterbell10 | 2017-06-13 | 1 | -1/+1 |
| | |||||
* | Out of world blocks are now always considered air blocks | LogicParrot | 2016-04-23 | 1 | -1/+1 |
| | |||||
* | Pathfinder now properly treats nonsolids above fence | LogicParrot | 2016-02-04 | 1 | -11/+15 |
| | |||||
* | Use IsBlockWater in cPath | LogicParrot | 2016-01-17 | 1 | -1/+1 |
| | |||||
* | Deleted cPath::BlockTypeIsFence | LogicParrot | 2015-12-27 | 1 | -29/+2 |
| | |||||
* | Update fences and gates list | Safwat Halaby | 2015-12-25 | 1 | -2/+9 |
| | | | | Update fences and gates list | ||||
* | PF - "Special blocks" handling | Safwat Halaby | 2015-12-24 | 1 | -107/+244 |
| | |||||
* | PF - Improved mob jumping | Safwat Halaby | 2015-12-21 | 1 | -78/+139 |
| | |||||
* | Revert "Changed cPath to have a reset method". | Safwat Halaby | 2015-12-21 | 1 | -62/+28 |
| | |||||
* | Changed cPath to have a reset method. | tycho | 2015-12-16 | 1 | -28/+62 |
| | | | | | | Also reverts "Changed raw cPath to an unique_ptr, fixes memory leak" This reverts commit 1515d37684b469f212bb9858cca6128d74e591b6. | ||||
* | Decoupled cMonster and path recalc logic, re-implemented recalc | Safwat Halaby | 2015-12-13 | 1 | -4/+9 |
| | |||||
* | Stop pathfinding over cobble walls | Gargaj | 2015-12-13 | 1 | -0/+1 |
| | | | Also 1.5 blocks high, shouldn't pathfind over it. | ||||
* | Blocks outside the world are never solid | worktycho | 2015-11-13 | 1 | -0/+4 |
| | | | Fixes #2539 | ||||
* | Fixed a position bug in the pathfinder | Tiger Wang | 2015-08-22 | 1 | -21/+4 |
| | |||||
* | Unified the doxy-comment format. | Mattes D | 2015-07-31 | 1 | -2/+4 |
| | |||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -1/+1 |
| | |||||
* | Fixed wrong indent. | Alexander Harkness | 2015-05-30 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2171 from SafwatHalaby/fence | Alexander Harkness | 2015-05-30 | 1 | -1/+7 |
|\ | | | | | PF - Handle all fencetypes | ||||
| * | PF - Handle all fencetypes | SafwatHalaby | 2015-05-30 | 1 | -1/+7 |
| | | |||||
* | | PF - Fixed diagonal cutting | SafwatHalaby | 2015-05-30 | 1 | -5/+12 |
|/ | |||||
* | Fix comments | tycho | 2015-05-28 | 1 | -9/+9 |
| | |||||
* | Fix warnings in cPath | tycho | 2015-05-24 | 1 | -9/+9 |
| | |||||
* | Pathfinder - Bounding boxes and some tweaks | SafwatHalaby | 2015-05-23 | 1 | -17/+100 |
| | |||||
* | Path recalculation improvements | SafwatHalaby | 2015-05-20 | 1 | -2/+10 |
| | |||||
* | Removed UniquePTR from PathFinder | SafwatHalaby | 2015-05-19 | 1 | -17/+7 |
| | |||||
* | Pathfinder - approximated paths when original destination unreachable | SafwatHalaby | 2015-05-17 | 1 | -24/+74 |
| | |||||
* | PathFinder uses UniquePtr for cell map. | SafwatHalaby | 2015-05-16 | 1 | -7/+2 |
| | |||||
* | Revert "PathFinder - smart pointers" | worktycho | 2015-05-15 | 1 | -2/+7 |
| | |||||
* | uniquePTR | SafwatHalaby | 2015-05-15 | 1 | -7/+2 |
| | |||||
* | PF - Less calcs per tick | wiseoldman95 | 2015-05-10 | 1 | -1/+1 |
| | |||||
* | Spaces in cPath | wiseoldman95 | 2015-05-08 | 1 | -0/+1 |
| | |||||
* | Merge pull request #1949 from SafwatHalaby/burn | worktycho | 2015-05-07 | 1 | -25/+0 |
|\ | | | | | AI - Better shade cover | ||||
| * | (duplicate) AI - Livestock escape fixed, water jumping fixed | wiseoldman95 | 2015-05-06 | 1 | -25/+0 |
| | | |||||
* | | Actually empty the open list | worktycho | 2015-05-06 | 1 | -1/+1 |
|/ | |||||
* | PF - Swimming bugfix | wiseoldman95 | 2015-05-06 | 1 | -3/+3 |
| | |||||
* | PF - Fixed mobs not reaching leaning player | wiseoldman95 | 2015-05-06 | 1 | -1/+7 |
| | |||||
* | Entity improvements | Tiger Wang | 2015-05-04 | 1 | -40/+61 |
| | | | | | | | | •Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes | ||||
* | PathFinder - Crash fix, chunks in parameters are now references | wiseoldman95 | 2015-05-03 | 1 | -6/+4 |
| | |||||
* | PathFinding - Chunk querying optimization and improve cPath::IsSolid | wiseoldman95 | 2015-05-02 | 1 | -41/+26 |
| | |||||
* | A* Pathfinding and better monster AI | wiseoldman95 | 2015-05-01 | 1 | -0/+379 |