1
0
Fork 0
Commit Graph

68 Commits

Author SHA1 Message Date
Tiger Wang f9ac6543ab C++17 stuff 2020-09-30 22:05:17 +01:00
Tiger Wang 330626ab22 Update submodules 2020-07-23 00:32:47 +01:00
peterbell10 84289a2ba9
Cleanup some workarounds and warnings (#4735)
* Cleanup thread_local usage in FastRandom

* Use constexpr to avoid clang warning

* Fix more Wglobal-constructor warnings

* Make MSVC happy?
2020-05-10 16:16:49 +00:00
peterbell10 57952505e5
Update fmt to 6.2.0 (#4718)
* Update fmt to 6.2.0
2020-05-05 22:52:14 +01:00
Mattes D a55f61548e
Extended Vector3 (#4666) 2020-04-18 11:44:35 +02:00
Mattes D 365cbc6e1c
Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
peterbell10 4727ed2084 Add a formatting function for Vector3 (#4282)
* Vector3: Add custom fmt compatible formatter.

* cLuaState: Add fmt version of ApiParamError

* Use vector formatting in manual bindings

* Always log vectors with FLOG
2018-09-24 21:33:39 +01: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 96ce841417 Add TOLUA_EXPOSITION for readability 2017-08-28 14:36:23 +01:00
peterbell10 3687ef397c Cleanup Vector3 constructors and Abs 2017-08-28 13:48:07 +01:00
peterbell10 759618b035 Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
Mattes D 28732bc339 Vector3: Removed useless NormalizeCopy overload from LuaAPI. 2016-07-18 22:11:39 +02:00
Mattes D ce30e3f666 Normalized Vector3 API to use the same capitalization as all else. 2016-06-10 17:59:33 +02:00
LogicParrot 109a07fd95 Updated vector hashing bit operations 2016-04-22 17:45:45 +03:00
LogicParrot ca6ef58b1e Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Tiger Wang 5b62c4c314 Reorganised the redstone simulator
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan!
* Uses classes and inheritance now
* Speed should be improved
2015-12-18 13:17:38 +00:00
worktycho 183284a2a4 Removed unused typedef 2015-10-12 15:02:25 +01:00
Tiger Wang f44d123ba8 Vector hasher is now a separate class 2015-06-07 12:53:59 +01:00
Tiger Wang 171c59a01b Changed appropriate containers to unordered_map
Thanks to @worktycho for guidance!

* Potential speed improvements
2015-06-06 12:21:21 +01:00
Tiger Wang 9c490293b8 Merge remote-tracking branch 'origin/master' into warnings
Conflicts:
	src/Mobs/Monster.cpp
	src/Vector3.h
2015-05-10 12:16:20 +01:00
worktycho e2e206d81b Fixed remaing pragmas 2015-05-09 10:59:08 +01:00
worktycho 4dcd9a9924 clang diagnostic not diagnostics
fixed clang pragmas
2015-05-09 10:55:40 +01:00
worktycho 523db778d9 Merge pull request #1972 from Woazboat/CodeCleanup_refactored
Fixed compiler warning overrides in Vector3.h
2015-05-09 00:25:38 +01:00
Woazboat eaba777a0e Fixed compiler warning overrides in Vector3.h 2015-05-09 01:15:45 +02:00
Tiger Wang 218010cd96 Fixed some Visual Studio warnings 2015-05-08 23:32:02 +01:00
Mattes D 9329c2c2cb Merge pull request #1945 from Woazboat/CodeCleanup_refactored
Small code cleanup - clean version
2015-05-08 21:52:41 +02:00
Woazboat eb84ffe5a6 Added float comparison warning overrides to Vector3::hasNonZeroLength 2015-05-08 15:12:33 +02:00
Woazboat ed404bc2f6 Ignoring Clang warnings for strict float comparison in Vector::Equals() 2015-05-08 15:12:33 +02:00
Woazboat 689fe6041c Changed Vector3 Equals function to avoid using memcmp 2015-05-08 15:12:33 +02:00
Woazboat c74bfc35d6 Check for zero length vector in Trace
Added hasNonZeroLength member function to Vector3
2015-05-08 15:12:32 +02:00
worktycho ee939cf8c8 Revert "Small code cleanup" 2015-05-05 22:08:40 +01:00
worktycho f3101f1d04 Merge pull request #1917 from Woazboat/CodeCleanup
Small code cleanup
2015-05-05 21:38:08 +01:00
wiseoldman95 1b0e21e0b2 A* Pathfinding and better monster AI 2015-05-01 13:18:47 +03:00
Woazboat 2359fc6705 Fix HasNonZeroLength name
now 100% more cs compliant
2015-04-29 00:27:15 +02:00
Woazboat 2f264dba71 Changed Vector3 Equals function to avoid using memcmp 2015-04-28 02:54:45 +02:00
Woazboat 797e3130d2 Check for zero length vector in Trace
Added hasNonZeroLength member function to Vector3
2015-04-28 02:47:36 +02:00
STRWarrior 13b96a40ea Added extra divide operator to Vector3.
The multiply operator had one for both a different vector and a number, but the divide operator didn't.
2015-04-07 13:25:55 +02:00
Mattes D 075b19c7cb Added Vector3::TurnCW() and Vector3::TurnCCW() 2014-12-24 06:43:28 +01:00
STRWarrior 5584144be2 First implementation for the LargeOakTree 2014-11-13 10:44:36 +01:00
Mattes D a47d9e5334 Fixed MSVC compilation. 2014-10-10 09:58:54 +02:00
archshift 76b37acb42 Float/Ciel: If it's going to use C++11, it might as well take advantage of it 2014-10-09 14:57:57 -07:00
archshift f8d1e96ae7 Use static casts instead of C casts, add floor-cast functions 2014-10-09 14:57:40 -07:00
madmaxoft 7fff12bfac Fixed spaces around single-line comments.
There should be at least two spaces in front and one space after //-style comments.
2014-07-17 19:13:23 +02:00
madmaxoft db75989157 Fixed a missing "inline" keyword. 2014-07-10 12:46:09 +02:00
madmaxoft ce670accc9 Fixed Vector3.h compilation in MSVC2008. 2014-07-10 12:37:21 +02:00
Tiger Wang 25e9862206 Compile fix 2014-07-04 17:49:44 +01:00
Tiger Wang 79e558be34 Suggestions 2014-07-04 17:42:40 +01:00
Tiger Wang 284c1c0514 Vector clamping fixes
Thank you, @madmaxoft.
2014-07-01 22:39:37 +01:00
Tiger Wang 85fae0e521 Implemented Vector3<>::Floor() 2014-06-30 19:21:21 +01:00
Tiger Wang 428cfb5c21 Suggestions 2014-06-29 22:41:31 +01:00