1
0
Fork 0
Commit Graph

4250 Commits

Author SHA1 Message Date
Mattes D 4083bc7005 AllToLua: Removed unneeded virtual method hooks. 2015-05-11 16:11:53 +02:00
Mattes D dd10ffb63a OnExecuteCommand hook can override the command result (crXXX). 2015-05-10 23:11:30 +02:00
Mattes D 693ffb689c Exported cPluginManager:ExecuteConsoleCommand() to Lua API.
Fixes #1999.
2015-05-10 22:51:16 +02:00
Mattes D 6c53abed23 Call HOOK_EXECUTE_COMMAND even for unknown console commands.
This allows plugins such as Aliases to intercept even unknown commands.
2015-05-10 21:46:25 +02:00
Mattes D b356419a07 StringUtils: Fixed StringSplitWithQuotes().
The function would crash when given a string that started with the delimiter.
2015-05-10 21:39:14 +02:00
Mattes D cbb1eff17a Added the EntireCommand parameter to HOOK_EXECUTE_COMMAND.
Fixes #1996.
2015-05-10 21:37:46 +02: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
Tiger Wang 11ef1fd24a Fixed some warnings and logic errors in Monster.cpp 2015-05-10 12:14:55 +01:00
wiseoldman95 8a576a0a35 PF - Less calcs per tick 2015-05-10 09:08:42 +03:00
Mattes D 756d310318 Added check against "Type const &" and "Type const *". 2015-05-09 12:58:56 +02:00
Mattes D 846d16315a CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
Mattes D c13b1931ff More style checking.
Spaces around some operators are checked.
2015-05-09 12:58:54 +02:00
jammet 61300ab9ef Rabbit and cooked rabbit now stackable
And corrected the alphabetical ordering.
2015-05-09 12:56:23 +02:00
Mattes D 92b8cd2f2a Merge pull request #1956 from Tri125/master
Fixed Magma cube sound and spawn size
2015-05-09 12:44:57 +02: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
Alexander Harkness 049ff67416 Merge pull request #1973 from Tri125/QuartzStack
Fixed #1893 : Quartz can now stack
2015-05-09 06:58:29 +01:00
Tristan 4642a50d62 GetSizeName of cSlime and cMagmaCube is now static 2015-05-08 20:50:05 -04: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
worktycho 1cef39cb73 Move chunk position accesses after the chunk validity checks 2015-05-08 23:20:22 +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
wiseoldman95 290bc2e377 Spaces in cPath 2015-05-08 17:08:15 +03: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 8a50918d2a Tracer::signum function now returns int
convert c style casts to c++ static casts

Changed fabs() to std::abs()
2015-05-08 15:12:32 +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
Woazboat 0d003a2d2a Changed Tracer::m_NormalTable to static array
Was previously instantiated for every trace
2015-05-08 15:12:32 +02:00
Mattes D fee690a3d1 Fixed inter-plugin calls.
When an inter-plugin call failed due to function not found, the server would maul the LuaState and "yield".
Fixes #1959.
2015-05-07 23:03:04 +02:00
worktycho 011126293b Merge pull request #1949 from SafwatHalaby/burn
AI - Better shade cover
2015-05-07 21:58:02 +01:00
Tri125 429e545167 Fixed #1893
Quartz ore now stack properly
2015-05-07 11:49:11 -04:00
Mattes D 4888f671d1 Merge pull request #1951 from mc-server/BroadcastRefactor
Added support for sending additional data in the ParticleEffect packet
2015-05-07 16:14:56 +02:00
Tri125 9f6192687f Big Magma Cube can now spawn
Following the same method as the Slime, Magma Cube can now spawn with the size of 1, 2 or 4.
2015-05-06 23:56:08 -04:00
Tri125 63af47832d Fixed the sound issue with the MagmaCube
-Name of the sound is correctly capitalized

-Get the appropriate sound depending on its size
2015-05-06 23:12:17 -04:00
tycho 448df85e56 Added support for additional data in the ParticleEffect Packet
Also started refactoring how broadcasts are handled
2015-05-07 03:47:46 +01:00
wiseoldman95 40af96b100 AI - Safer WouldBurnAt() 2015-05-06 20:01:06 +03:00
wiseoldman95 753dfb950a AI - Better shade cover 2015-05-06 20:01:06 +03:00
worktycho 7771091099 Actually empty the open list 2015-05-06 17:26:59 +01:00
wiseoldman95 b8aa38b18d (duplicate) AI - Livestock escape fixed, water jumping fixed 2015-05-06 17:23:07 +03:00
wiseoldman95 c6dd455d72 PF - Swimming bugfix 2015-05-06 09:27:47 +03:00
wiseoldman95 020e928685 PF - Fixed mobs not reaching leaning player 2015-05-06 07:31:02 +03:00
worktycho f71d693302 Merge pull request #1939 from SafwatHalaby/Polising
AI - More conservative use of ResetPathFinding, some polishing
2015-05-05 14:09:16 +01:00
wiseoldman95 304bc4eca4 AI - More conservative use of ResetPathFinding, fixed minor swimming / jumping bug 2015-05-05 12:51:58 +03:00
wiseoldman95 94f882b144 Chmod +x CheckBasicStyle.lua 2015-05-05 12:49:07 +03:00
Mattes D 9ba7823252 Merge pull request #1938 from jan64/master
Change visual protocol name to include MCServer
2015-05-04 23:28:49 +02:00
Alexander Harkness adba982257 Merge pull request #1935 from mc-server/fixes
Entity improvements
2015-05-04 19:31:53 +01:00
jan64 b1efaa55cd Change visual protocol name to include MCServer 2015-05-04 17:52:46 +02:00
worktycho 6df0e877e8 Print Build info as part of the crash information 2015-05-04 09:07:03 +01:00