madmaxoft@gmail.com
619ec8b247
Converted simulators to take cWorld reference instead of a pointer
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1228 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 13:39:20 +00:00
madmaxoft@gmail.com
2588f5a605
Simulators now have direct access to the cChunk object in the WakeUp() call
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 07:42:45 +00:00
madmaxoft@gmail.com
32ee4aaf1e
Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16 11:12:56 +00:00
madmaxoft@gmail.com
1a127f5510
Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.
...
Note that cItems is used in the function signature but not yet exported in the API, TODO!
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-27 02:00:33 +00:00
madmaxoft@gmail.com
412c21a22c
Floody fluid simulator can create sourceblocks (configurable in World.ini)
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1119 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-04 05:21:07 +00:00
luksor111@gmail.com
575abe8691
Dispensers can dispense items and liquids now
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1105 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-26 17:16:33 +00:00
madmaxoft@gmail.com
af66f8ebae
Fixed a crash in redstone simulator when destroying blocks in Y < 2
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1084 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-20 13:56:42 +00:00
madmaxoft@gmail.com
7f5bb5c3e3
RedstoneSimulator refactoring to use cWorld::GetBlockTypeMeta() as much as possible
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1076 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 07:07:30 +00:00
madmaxoft@gmail.com
b1777fa867
Levers (patch contributed by Keyboard)
...
http://forum.mc-server.org/showthread.php?tid=649
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16 05:52:45 +00:00
madmaxoft@gmail.com
b65a22fc1f
Fixed boolean comparison.
...
Don't compare booleans to false / true, use them directly.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16 16:03:56 +00:00
madmaxoft@gmail.com
1cd213fa60
Fixed more valgrind issues
...
( http://forum.mc-server.org/showthread.php?tid=598&pid=5139#pid5139 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1013 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-27 07:51:01 +00:00
madmaxoft@gmail.com
b08c1c7726
Removed excessive debug loggin in Floody fluid simulator.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@987 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-20 11:47:50 +00:00
madmaxoft@gmail.com
9a9f15eec6
Fluids will wash away crops and sugarcane.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@980 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-19 18:48:34 +00:00
madmaxoft@gmail.com
c68aa68c69
Fixed a few bugs in fluid placement - fluid into other fluid, fluid into washable blocks.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@977 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18 19:41:29 +00:00
madmaxoft@gmail.com
99c9b2e11d
Reverted previous commit, chose a different solution, much cleaner.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@975 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18 13:39:42 +00:00
madmaxoft@gmail.com
7aa87d1818
Made constants in cChunkDef enums, compilation fixes for gcc.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@974 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18 10:42:47 +00:00
madmaxoft@gmail.com
4b05df30d1
More blocks can be washed away by fluids.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@971 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-16 20:49:17 +00:00
madmaxoft@gmail.com
45c58077f7
Fixed floody fluid sim making downward fluid behave like source blocks.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@970 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-16 19:52:55 +00:00
madmaxoft@gmail.com
226b9ad8eb
Decreased logging in floody fluid simulator.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@969 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-16 19:34:07 +00:00
madmaxoft@gmail.com
f9dab57d8b
Fixed DelayedFluidSimulator.
...
Floody fluid simulator is now woken up properly across chunk borders.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@966 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-15 20:16:43 +00:00
madmaxoft@gmail.com
164f0e7de9
Floody fluid sim: reads params from world.ini; water and lava react together into cobblestone / stone / obsidian
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@965 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14 20:10:03 +00:00
madmaxoft@gmail.com
41a38e8d90
Floody fluid simulator now dries up correctly, too.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@964 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14 18:30:16 +00:00
madmaxoft@gmail.com
5b7de82a79
Initial Floody fluid simulator.
...
Can spread, cannot dry.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@963 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-14 17:06:21 +00:00
madmaxoft@gmail.com
b4ca06b9d9
Better split of the fluid simulator functionality; removed the old LavaSimulator and WaterSimulator files.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@958 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-13 16:24:50 +00:00
madmaxoft@gmail.com
ad883a233b
Forgotten file
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@957 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-13 14:10:07 +00:00
madmaxoft@gmail.com
f7da7c2536
Preparation for multiple fluid simulators.
...
Moved all simulators into a subfolder.
Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator.
Moved original fluid simulation into cClassicFluidSimulator.
Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-13 09:53:28 +00:00