summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-3/+3
|
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-2/+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
* Remove old Android leftovers (#4722)Mat2020-05-071-1/+1
|
* Added check for item damage (#4681)Lukas Pioch2020-04-191-2/+1
| | | | | * Added check for item damage Co-authored-by: Mattes D <github@xoft.cz>
* Ignore whitespace only lines in brewing and furnace recipes (#4332)peterbell102019-06-111-8/+6
|
* Smelting Gives Experience (#4094)Alex Sweet2018-04-111-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Smelting Exp Smelting now gives experience * Furnace.txt update Exp rewards are entered in furnace.txt, Reward calculation is now done is the furnaceentity class * furnace.txt update Changed alignment tabs to spaces Included documentation of exp in recipe * Updated StringToFloat changed strtod to strtof * Explicit Float to Int * Reworked Smelting Rewards * No C casts -Adds new function to the api -Sets reward counter to 0 in furnace constructor * Style and exp lock removed -Fixed style mistakes accoring to PR notes -XP isn't locked to a single player anymore * No Smelter API -Removed SetLastSmelter and GetLastSmelter -Fixed comments -Fixed log reward amounts
* Add the fmt library (#4065)peterbell102018-01-031-3/+3
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Fixed Clang 5.0 compile errors (#4085)bibo382017-12-211-1/+1
| | | | | | | | | | | | * Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Use CMake's Android generators to crosscompileTiger Wang2016-12-121-1/+5
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functionsbibo382015-07-121-3/+3
|
* Made -Weverything an error.tycho2015-05-241-3/+3
|
* C++11 and function rename.Howaner2014-12-171-2/+1
|
* Implemented vanilla-like shift click.Howaner2014-12-131-0/+17
| | | This fixes many visual bugs.
* Replaced auto_ptr with unique_ptr.Mattes D2014-11-271-3/+3
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-4/+4
|
* Use std::auto_ptrHowaner2014-08-311-6/+6
|
* Fixed compile warnings.Howaner2014-08-311-3/+3
|
* Rewrited furnace.txt loading.Howaner2014-08-311-131/+110
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Fixed spaces around single-line comments.madmaxoft2014-07-171-4/+4
| | | | There should be at least two spaces in front and one space after //-style comments.
* FurnaceRecipe parsing: Fixed whitespace removing.Mattes D2014-06-261-1/+1
|
* Fixed misformed trimming.Mattes D2014-06-261-1/+1
|
* FurnaceRecipe: Moved the parsing into separate functions for clarity.Mattes D2014-06-261-60/+60
|
* FurnaceRecipe parser: Made the parser more forgiving.Mattes D2014-06-261-2/+2
| | | | Errors don't cause a stop in the parsing, but rather just skip the offending line.
* FurnaceRecipe parser: Added an else branch, changed to a switch.Mattes D2014-06-261-45/+69
|
* Merge remote-tracking branch 'origin/furnaceparsing'Mattes D2014-06-261-92/+148
|\
| * Parenthesised comparisonTiger Wang2014-06-231-1/+1
| |
| * Merge remote-tracking branch 'origin/furnaceparsing' into furnaceparsingTiger Wang2014-06-221-2/+2
| |\ | | | | | | | | | | | | Conflicts: src/FurnaceRecipe.cpp
| | * Fixed compile errorsworktycho2014-06-221-2/+2
| | |
| * | SuggestionsTiger Wang2014-06-221-6/+7
| |/
| * SuggestionsTiger Wang2014-06-221-36/+26
| |
| * Removed debugging codeTiger Wang2014-06-211-1/+0
| |
| * Rewrote furnace recipe parserTiger Wang2014-06-211-93/+159
| | | | | | | | * Fixes #110
* | Nullify deleted pointers.archshift2014-06-191-0/+4
|/
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+0
|
* Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-1/+1
|
* Fixed a load of format string errorsTycho2014-03-111-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+255