summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp (follow)
Commit message (Expand)AuthorAgeFilesLines
* Another handful of packets rewritten.madmaxoft@gmail.com2012-08-191-0/+32
* Slight cChunk optimizationmadmaxoft@gmail.com2012-07-211-1/+1
* A new Block handling system :olapayo94@gmail.com2012-07-151-193/+21
* Leaves blocks allowed one more block of distance from a log block before they decaymadmaxoft@gmail.com2012-07-151-2/+2
* BlockArea name change revertedlapayo94@gmail.com2012-07-091-1/+1
* Squirrel Pluginslapayo94@gmail.com2012-07-081-1/+1
* Leaves decay adjusted to 4 blocks in between the leaves and the log, instead of previous 3madmaxoft@gmail.com2012-07-021-2/+2
* Leaves decay properly - if they are not connected to a logmadmaxoft@gmail.com2012-07-021-31/+109
* Made ForEach API safer to use, now supports Destroy()-ing objects, too ( http://forum.mc-server.org/showthread.php?tid=434&pid=3513#pid3513 )madmaxoft@gmail.com2012-06-191-5/+10
* Crops aren't uprooted if farmland is dry.cedeel@gmail.com2012-06-181-3/+12
* Removed the deprecated GetBlockEntity(), added several enumerators to replace it.madmaxoft@gmail.com2012-06-171-0/+154
* Fixed leaves blockticking - must touch neighboring chunks, too, instead of self at wrong places.madmaxoft@gmail.com2012-06-171-23/+54
* Leaves: Applied patch by Luksor.cedeel@gmail.com2012-06-161-1/+20
* Exported cWorld::ForEachEntity and cWorld::ForEachEntityInChunk; no idea if they actually workmadmaxoft@gmail.com2012-06-161-0/+17
* Attempt to bring sanity to newlines across systems.cedeel@gmail.com2012-06-141-1643/+1643
* Snow cover breaks when the block below it is removed (FS #184).madmaxoft@gmail.com2012-06-091-1/+3
* Sugarcane and cactus max height can be set in world.ini.madmaxoft@gmail.com2012-06-091-4/+4
* Cacti grow by themselves and by bonemealmadmaxoft@gmail.com2012-06-091-0/+47
* Sugarcane grows and can be grown using bonemeal.madmaxoft@gmail.com2012-06-081-60/+98
* Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too.madmaxoft@gmail.com2012-06-071-1/+9
* BlockChecking split into a separate functionmadmaxoft@gmail.com2012-06-071-93/+94
* Repeaters' delays can be set by rclkmadmaxoft@gmail.com2012-06-071-0/+11
* Fixed a typo in grass spreading causing much of the "too many packets" error.madmaxoft@gmail.com2012-06-071-5/+8
* Grass spreads to adjacent dirt blocks. Doesn't check dest light yet.madmaxoft@gmail.com2012-06-061-17/+52
* Item-dropping code rewritten and centralized - now there's only one place to modify if we want to split or merge same-item drops: cWorld:SpawnItemPickups(). Also, mined blocks can now drop more items, and they recognize if they're being mined by the correct tool.madmaxoft@gmail.com2012-06-061-9/+13
* Fixed a nasty int overflow bug in blockticking code ( http://forum.mc-server.org/showthread.php?tid=457 )madmaxoft@gmail.com2012-06-011-3/+4
* Fixed melons and pumpkins generating in a wrong place.madmaxoft@gmail.com2012-05-311-1/+1
* Added support for SetNextBlockTick() function callable from Luamadmaxoft@gmail.com2012-05-301-18/+12
* Melon and pumpkin stems now grow melons and pumpkinsmadmaxoft@gmail.com2012-05-301-1/+1
* Fixed blocktick distributionmadmaxoft@gmail.com2012-05-301-6/+14
* Farmland gets hydrated and dehydrated. Fixed an off-by-one error in neighbor-chunk manipulation.madmaxoft@gmail.com2012-05-301-3/+75
* Fixed a crash when chunks were loaded / generated with entities ( http://forum.mc-server.org/showthread.php?tid=450 )madmaxoft@gmail.com2012-05-301-26/+4
* Added code for the chunks to manipulate their neighbors while ticking. Also added some basic farming support - melon and pumpkin growing code. Untested and untestable so far, will test and fix later.madmaxoft@gmail.com2012-05-291-189/+176
* Chests and Furnaces are now saved properly into Anvil scheme.madmaxoft@gmail.com2012-05-281-1/+1
* Merged the composable_generator branch into the trunkmadmaxoft@gmail.com2012-05-251-101/+143
* Fixed two "bottlenecks" found using profiling - MakeIndex() instead of MakeIndexNoCheck()madmaxoft@gmail.com2012-05-081-2/+2
* Added the "/regeneratechunk" command that regenerates either current chunk or a chunk specified with x, z parameters. TODO: permissions - we don't want guests erasing our chunks!madmaxoft@gmail.com2012-04-101-29/+15
* Removed the split between 1.2.3 and 1.1, left only 1.2.3 codemadmaxoft@gmail.com2012-03-241-13/+0
* Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists.madmaxoft@gmail.com2012-03-221-8/+17
* Unified the chunk data to use the BLOCKDATA datatype.madmaxoft@gmail.com2012-03-141-7/+7
* Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com2012-03-141-126/+135
* Using references instead of pointers for sending packetsmadmaxoft@gmail.com2012-03-101-1/+1
* Fixed mob spawn packet for 1.2 client, now client doesn't bail out when mobs are turned onmadmaxoft@gmail.com2012-03-101-2/+3
* Was using "#else if" which is not valid apparently, now using "#elif"faketruth2012-03-101-1/+1
* You can change axis ordering by setting AXIS_ORDER to AXIS_ORDER_XZY in cChunk.h !THIS WILL SCREW UP YOUR WORLDS THOUGH!faketruth2012-03-101-0/+4
* Using more of the index functions in cChunk, so it should be easy enough to flip the axis ordering nowfaketruth2012-03-101-76/+61
* cClientHandles have a unique ID now to distinguish themfaketruth2012-03-091-9/+9
* ChunkSender: Chunks are now compressed and sent to clients from a separate threads, proper passive waiting between threads. Not much tested, just appears to work :)madmaxoft@gmail.com2012-03-051-62/+53
* The world can now truly be made higher by incrementing cChunk::c_ChunkHeight to 256. !!HOWEVER THIS WILL DESTROY YOUR SAVED WORLD!!faketruth2012-03-041-1/+1
* Changed signed char to unsigned char in block packets, so we can receive height up to 255faketruth2012-03-041-9/+16
* Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth2012-03-031-87/+87
* Finally got the multiblock packet working! It seems the byte order was wrongfaketruth2012-03-021-5/+3
* MultiBlock packet is working partly.. I really don't understand what's wrong with this packet :/faketruth2012-03-021-0/+13
* New redstone simulator. Should work without crashes!faketruth2012-03-011-1/+15
* Server uses ~40% less CPU nowfaketruth2012-02-281-86/+92
* Chunk now has an indicator of load failure; Chunk generator uses cChunkStaymadmaxoft@gmail.com2012-02-281-0/+16
* New cChunkStay class for temporarily keeping chunks loaded even when then have no clients. For now unused, will be used by generator and lighting in the future.madmaxoft@gmail.com2012-02-261-1/+13
* Plain pointer cChunkPtr finishing touches; removed cChunk's critical sectionsmadmaxoft@gmail.com2012-02-231-162/+14
* cChunk: removed unused codemadmaxoft@gmail.com2012-02-231-6/+0
* Added some asserts to trace a bugfaketruth2012-02-221-1/+5
* Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com2012-02-211-5/+6
* Fixed heightmap optimization from rev 302; removed a few more cChunkPtrsmadmaxoft@gmail.com2012-02-211-16/+42
* Optimized hightmap recalc when setting a chunk's blockmadmaxoft@gmail.com2012-02-211-7/+31
* Removed some more cChunkPtr usagemadmaxoft@gmail.com2012-02-201-3/+7
* Using own ASSERT() that logs to filefaketruth2012-02-201-5/+5
* Substantial cWorld::FastSetBlock() speed up by queueing all such calls and processing them later chunk-wise (makes growing trees in the generator fast again)madmaxoft@gmail.com2012-02-181-8/+28
* Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries.madmaxoft@gmail.com2012-02-181-0/+10
* Thread-safe chunk generation, storage and generator are queried for progress while initializing servermadmaxoft@gmail.com2012-02-181-8/+8
* cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively.madmaxoft@gmail.com2012-02-161-5/+6
* Marking chunk dirty after generatingmadmaxoft@gmail.com2012-02-161-0/+2
* Heightmap is properly generated after loading chunks now, so /spawn and /top should work properly againfaketruth2012-02-161-0/+2
* Chunk is now marked as dirty; saving only dirty chunks; rewritten load / save not to use cChunkPtr; set VC2008 project to level4 warnings; block entities are now loaded and saved properlymadmaxoft@gmail.com2012-02-161-7/+146
* Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window)madmaxoft@gmail.com2012-02-151-0/+13
* Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com2012-02-131-361/+343
* Removed unused codemadmaxoft@gmail.com2012-02-081-44/+113
* MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)madmaxoft@gmail.com2012-02-081-5/+8
* Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com2012-02-011-2/+2
* AString logging fixmadmaxoft@gmail.com2012-02-011-7/+7
* sprintf() begone! Replaced with StringUtils' Printf()madmaxoft@gmail.com2012-02-011-3/+3
* Removed a few duplicate includesmadmaxoft@gmail.com2012-02-011-2/+1
* Fixed a problem in cCSLock (sorry); reverted cChunkmadmaxoft@gmail.com2012-01-301-3/+3
* Added a WebAdmin interface to view users their groups, and the permissions of groups.faketruth2012-01-301-1/+1
* More cFile cleanup; removed old format writing for block entitiesmadmaxoft@gmail.com2012-01-301-176/+199
* VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com2012-01-291-10/+5
* Working on a new plugin design with Lua. While retaining backwards compatibility of course...faketruth2012-01-261-28/+28
* Probably fixed a deadlock! http://www.mc-server.org/support/index.php?do=details&task_id=147faketruth2012-01-261-2/+2
* Cactus towers can be destroyed by removing the bottom blockfaketruth2012-01-231-0/+1
* Terrain generation is synchronous again, async generation has bugs.faketruth2012-01-191-43/+13
* Fixed the numchunks console command.faketruth2012-01-011-0/+76
* Made a couple of functions in cChunk inline, this should speed up several block operations on chunksfaketruth2011-12-311-105/+8
* This bug should be fixed now http://mc-server.org/support/index.php?do=details&task_id=112faketruth2011-12-281-6/+44
* Some kind of 'template' world generator that right now just generates an all dirt world. You can use this to test new algorithmsfaketruth2011-12-271-2/+2
* Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth2011-12-261-72/+72
* - improved Simulator system lapayo94@gmail.com2011-12-261-26/+1
* - Linux compatible fixes including updated makefilemtilden@gmail.com2011-12-261-4/+5
* Moved the actual world generation from cChunk.cpp to a more isolated file cWorldGenerator.cppfaketruth2011-12-261-236/+3
* Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speedfaketruth2011-12-261-7/+0
* Chunks are generated in a separate thread allowing players to keep on playing and chatting while chunks are generated. This means, however, that cWorld::GetChunk() does not always return a chunk and is something you need to be aware of. I am not entirely sure if all this is completely stable, but I think so :Ofaketruth2011-12-251-21/+31
* Digging leaves with shears now drops leaveslapayo94@gmail.com2011-12-221-4/+31
* Changed chunk generation so any surface sand with air underneath it will turn into sandstone to prevent most sand cave-ins due to odd cave placement.admin@omencraft.com2011-11-151-12/+37
* Fixed doors. I forgot to actually return proper Hex value. Started work on adding farmland, farming, and leaf decay support.admin@omencraft.com2011-11-101-0/+5
* Redstone clocks now work. even one clocks. torches don't update themselves when placed yet, but redstone wire updates the torch. Fixed a bug with piston animations.admin@omencraft.com2011-11-091-4/+4
* Fixed bug in cChunk.cpp not calculating RedstoneCircuits at the correct positions. Also, forgot to mention you can now place colored wool.admin@omencraft.com2011-11-081-2/+2
* Updated redstone and pistons some mode. If you break an extended piston the piston extension will now also break. When a redstone device is broken by something other than a person the redstone circuit should now update.admin@omencraft.com2011-11-071-4/+21
* Patch with diff file created by Sebi (implemented some stuff like lava physics, drops are deleted when in lava, water is now slower, lava gives actual damage etc.). Pistons now work mostly as they should. They do not yet show the motion animation and do not emit sound. They do extend, push, and retract as they should though. Right now the only way to activate a piston is to light redstone wire adjacent to it with a redstone torch.admin@omencraft.com2011-11-061-10/+10
* Change SetBlock to FastSetBlock in cRedstone.cpp and grass will now grow if any one hit block is above it.admin@omencraft.com2011-11-051-6/+11
* Fixed some "Entity was not found in any chunk!" warningsfaketruth2011-11-021-10/+18
* fixed player spawning in the ground.admin@omencraft.com2011-11-011-1/+1
* Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth2011-10-311-33/+32
* Using SSE instructions for noise (terrain generation)faketruth2011-10-251-9/+9
* Compiles for linuxfaketruth2011-10-211-6/+9
* MCServer c++ source filesfaketruth2011-10-031-0/+1388