summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp (follow)
Commit message (Expand)AuthorAgeFilesLines
* Renamed HOOK_WEATHER_CHANGE to HOOK_WEATHER_CHANGED, added the glue code for it to actually workmadmaxoft@gmail.com2012-06-141-3/+3
* Attempt to bring sanity to newlines across systems.cedeel@gmail.com2012-06-141-1845/+1845
* Added HOOK_WEATHER_CHANGE.cedeel@gmail.com2012-06-141-0/+3
* Revamped the weather system.cedeel@gmail.com2012-06-131-28/+69
* Fixed a forgotten ini file readmadmaxoft@gmail.com2012-06-091-0/+1
* More ini settings save their defaultsmadmaxoft@gmail.com2012-06-091-5/+5
* New IniFile functionality: read value and set default if it isn't present (GetValueSet() ); used by cWorldmadmaxoft@gmail.com2012-06-091-29/+20
* Sugarcane and cactus max height can be set in world.ini.madmaxoft@gmail.com2012-06-091-2/+2
* Plants growable by bonemeal are settable in the world.ini. Default matches vanilla MC.madmaxoft@gmail.com2012-06-091-8/+67
* Cacti grow by themselves and by bonemealmadmaxoft@gmail.com2012-06-091-0/+6
* Bonemeal is consumed in survival mode when used on growable blocksmadmaxoft@gmail.com2012-06-091-6/+7
* Sugarcane grows and can be grown using bonemeal.madmaxoft@gmail.com2012-06-081-0/+6
* 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-0/+88
* Repeaters' delays can be set by rclkmadmaxoft@gmail.com2012-06-071-0/+9
* 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-7/+44
* Added support for SetNextBlockTick() function callable from Luamadmaxoft@gmail.com2012-05-301-0/+9
* 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-21/+75
* Merged the composable_generator branch into the trunkmadmaxoft@gmail.com2012-05-251-234/+258
* 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-0/+12
* Reverted the previous commit - it is useless, since entities still depend heavily on cWorldmadmaxoft@gmail.com2012-03-241-98/+0
* Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers)madmaxoft@gmail.com2012-03-231-0/+98
* Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists.madmaxoft@gmail.com2012-03-221-2/+2
* Exposed a function to Lua to get a block's sky light valuefaketruth2012-03-161-0/+9
* Unified the chunk data to use the BLOCKDATA datatype.madmaxoft@gmail.com2012-03-141-0/+15
* Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com2012-03-141-9/+27
* Added a flat terrain generator with settable terrain heightmadmaxoft@gmail.com2012-03-121-2/+4
* Stopping the ChunkSender upon server stopmadmaxoft@gmail.com2012-03-111-0/+1
* Fixed a few obsoleted functionsmadmaxoft@gmail.com2012-03-101-23/+28
* Fixed *nix threading issue;madmaxoft@gmail.com2012-03-101-1/+1
* cClientHandles have a unique ID now to distinguish themfaketruth2012-03-091-2/+2
* Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth2012-03-071-32/+44
* That was not a good place to use ARRAYCOUNT()madmaxoft@gmail.com2012-03-061-5/+5
* Fixed rev368's ChunkSender, now sends properly even chunks that are loaded. Fixed a deadlock in cClientHandle vs TickThread over cClientHandle::m_CSChunkListsmadmaxoft@gmail.com2012-03-061-0/+18
* Fixed bug FS#157 http://mc-server.org/support/index.php?do=details&task_id=157faketruth2012-03-061-5/+5
* 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-9/+13
* Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth2012-03-031-6/+6
* New redstone simulator. Should work without crashes!faketruth2012-03-011-0/+4
* Fixed the authenticator bugmadmaxoft@gmail.com2012-02-291-0/+3
* Added validity checks to world broadcasting. Also added logging to cPlayer deletion to catch that stupid BugByBoo.madmaxoft@gmail.com2012-02-291-3/+5
* Chunk now has an indicator of load failure; Chunk generator uses cChunkStaymadmaxoft@gmail.com2012-02-281-0/+9
* Implemented synchronous chunk loading; optimized cChunkStay interface for speed (though still unused ;)madmaxoft@gmail.com2012-02-281-2/+20
* Const-correctness for packet broadcasting (fixes GCC compilation)madmaxoft@gmail.com2012-02-281-1/+1
* 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-0/+9
* Added a crude way of disabling redstone. It's necessary though, redstone is completely broken, crashes the server all the timefaketruth2012-02-221-22/+0
* Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com2012-02-211-74/+35
* Fixed heightmap optimization from rev 302; removed a few more cChunkPtrsmadmaxoft@gmail.com2012-02-211-0/+27
* Fixed block-getting so that simulators work againmadmaxoft@gmail.com2012-02-211-16/+26
* Removed some more cChunkPtr usagemadmaxoft@gmail.com2012-02-201-14/+53
* 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-20/+9
* Fixed previous commit: forgot to remove a debugging settingmadmaxoft@gmail.com2012-02-181-3/+1
* Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries.madmaxoft@gmail.com2012-02-181-11/+32
* Thread-safe chunk generation, storage and generator are queried for progress while initializing servermadmaxoft@gmail.com2012-02-181-40/+108
* Chunk coords mostly "upgraded" to include the Y coord for future compatibilitymadmaxoft@gmail.com2012-02-171-0/+2
* Removed useless log messagesmadmaxoft@gmail.com2012-02-171-1/+0
* git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6faketruth2012-02-161-2/+2
* cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively.madmaxoft@gmail.com2012-02-161-0/+9
* Got rid of dangerous GetEntity(), not using DoWithEntity()faketruth2012-02-161-5/+4
* 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-1/+72
* Fixed logging formatting error in cWorldmadmaxoft@gmail.com2012-02-151-1/+1
* Got rid of cWorld::GetAllPlayers() and implemented ForEachPlayer() more or less in Luafaketruth2012-02-141-20/+0
* 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-451/+404
* Added total chunk count to webadminmadmaxoft@gmail.com2012-02-081-2/+108
* 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-42/+82
* 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-0/+4
* Old code begone! ChunkMap cleanupmadmaxoft@gmail.com2012-01-291-1/+1
* VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com2012-01-291-5/+6
* Terrain generation is synchronous again, async generation has bugs.faketruth2012-01-191-27/+29
* Fixed the numchunks console command.faketruth2012-01-011-1/+15
* Made a couple of functions in cChunk inline, this should speed up several block operations on chunksfaketruth2011-12-311-2/+2
* - implemented the fire simulation in native c++ (cFireSimulator)lapayo94@gmail.com2011-12-281-5/+12
* Fixed some small memory leakslapayo94@gmail.com2011-12-281-0/+2
* Users file was pretty messed up with mixed unix and windows line endings. The ini failed to parse correctly under cygwin.faketruth2011-12-271-1/+8
* 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-8/+14
* - improved Simulator system lapayo94@gmail.com2011-12-261-8/+22
* - Linux compatible fixes including updated makefilemtilden@gmail.com2011-12-261-14/+18
* 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-50/+120
* Max. players and MOTD are now changeable in the settings.inilapayo94@gmail.com2011-12-241-0/+21
* Digging leaves with shears now drops leaveslapayo94@gmail.com2011-12-221-5/+5
* Added code for doors. Doors now place correctly but opening them is buggy and I need to change the current opening code to use bitwise operators.admin@omencraft.com2011-11-101-3/+3
* Storms were WAY too frequent. I toned them down.admin@omencraft.com2011-11-101-4/+4
* Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings.admin@omencraft.com2011-11-101-0/+71
* bugfix to redstone, it can climb walls again.admin@omencraft.com2011-11-091-5/+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-0/+35
* Fixed world timefaketruth2011-11-081-1/+10
* Added Sebi's changes to pistons and item drops.admin@omencraft.com2011-11-071-0/+38
* 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-3/+15
* Fixed some "Entity was not found in any chunk!" warningsfaketruth2011-11-021-0/+1
* Changed world gamemode location to world.ini for world based gamemodes.admin@omencraft.com2011-11-021-2/+4
* fixed player spawning in the ground.admin@omencraft.com2011-11-011-5/+0
* You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yetfaketruth2011-11-011-36/+32
* Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth2011-10-311-4/+4
* Made several recomended changes. Gamemode is now world based. Need to add it to player.admin@omencraft.com2011-10-261-1/+2
* Updated VS2010 project filesfaketruth2011-10-261-104/+43
* git-svn-id: http://mc-server.googlecode.com/svn/trunk@10 0a769ca7-a7f5-676a-18bf-c427514a06d6admin@omencraft.com2011-10-261-10/+120
* MCServer c++ source filesfaketruth2011-10-031-0/+764