Mattes D
d3076a3e16
cNetwork: Split cNetworkSingleton to a separate file.
2015-01-22 20:13:00 +01:00
Mattes D
ae29a82eba
cNetwork: Fixed WSAStartup()-not-called error in Listen().
2015-01-22 20:12:59 +01:00
Mattes D
60807adfb5
cNetwork: Handle WSA initialization failures.
2015-01-22 20:12:58 +01:00
Mattes D
7cddb62374
cNetwork: Added an OnError callback for listening servers.
...
The callback receives the error details.
2015-01-22 20:12:57 +01:00
Mattes D
646e636933
cNetwork: Rewritten server listen into a factory method.
2015-01-22 20:12:56 +01:00
Mattes D
4647e6ad71
cNetwork: Removed unneeded dependency.
2015-01-22 20:12:55 +01:00
Mattes D
728a624e48
cNetwork: Refactored cTCPLinkImpl::Connect into a factory.
2015-01-22 20:12:55 +01:00
Mattes D
6f29cfe084
cNetwork: Cosmetics.
2015-01-22 20:12:54 +01:00
Mattes D
b59206207c
cNetwork: Fixed compilation.
2015-01-22 20:12:52 +01:00
worktycho
19121d2962
Wrap debug variable in ifdef
...
avoidss unused variable error in clang
2015-01-22 20:12:51 +01:00
Mattes D
235b8f1f6b
cNetwork: Added error logging to server socket creation.
...
This is mainly for WinXP and RasPi testing.
2015-01-22 20:12:50 +01:00
Mattes D
ddb1818dd5
cNetwork: Added multithreading protection.
2015-01-22 20:12:50 +01:00
Mattes D
d8ac99a037
cNetwork: Implemented connection shutdown and close.
2015-01-22 20:12:49 +01:00
Mattes D
9ffca12709
cNetwork: Fixed Linux compilation.
2015-01-22 20:12:48 +01:00
Mattes D
a2aa37bdc5
cNetwork: Implemented link address getting.
2015-01-22 20:12:47 +01:00
Mattes D
28e97d5468
cNetwork: Implemented basic server functionality.
2015-01-22 20:12:46 +01:00
Mattes D
251c96952b
cNetwork: Implemented IP-to-hostname lookup.
2015-01-22 20:12:45 +01:00
Mattes D
fde44cba08
cNetwork: Implemented HostnameToIP lookups.
2015-01-22 20:12:45 +01:00
Mattes D
bef957ef14
Added newline to logged messages in the tests.
2015-01-22 20:12:43 +01:00
Tycho
a9b8a530b1
Extracted Google connection test
2015-01-22 20:12:42 +01:00
Mattes D
b8b3409b74
cNetwork: Linux compilation fix.
2015-01-22 20:12:41 +01:00
Mattes D
6f5e267d58
Implemented LibEvent-based client connections.
2015-01-22 20:12:40 +01:00
Mattes D
a8a7488b54
Added the libevent library.
2015-01-22 20:12:39 +01:00
Mattes D
9429cdcb53
Fixed warnings in StringUtils.
2015-01-21 20:39:34 +01:00
Matyas Dolak
adf3b3a569
ByteBuffer: Added support for reading unsigned shorts and ints.
2015-01-21 12:12:22 +01:00
Mattes D
2df8e4863f
Fixed warnings in FastNBT.cpp.
2015-01-20 23:52:53 +01:00
Mattes D
5ac3a23586
Fixed warnings in 1.7 protocol.
2015-01-18 22:43:35 +01:00
Mattes D
45b1d5ff78
Fixed various warnings.
2015-01-18 18:01:24 +01:00
Mattes D
b1c58b7b52
cWorld: Fixed a type warning.
2015-01-18 15:10:05 +01:00
Mattes D
83ed6a2c1b
Fixed type conversion warnings.
2015-01-18 11:25:16 +01:00
Mattes D
e38f41d32f
Merge pull request #1702 from mc-server/chrono
...
Started to convert more of MCServer to std::chrono
2015-01-18 11:21:36 +01:00
Mattes D
e211aafaa4
Fixed type-conversion warnings.
2015-01-18 11:02:17 +01:00
worktycho
6758c1d2a1
correct comment to say milliseconds
2015-01-17 22:24:25 +00:00
Kirill Kirilenko
41f30edcf7
Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types.
2015-01-17 16:00:12 +03:00
Kirill Kirilenko
3dc994f9dc
Fixed CppCheck: (performance) Possible inefficient checking for emptiness.
2015-01-17 15:20:03 +03:00
Kirill Kirilenko
2ce2741968
Fixed CppCheck: (performance) Function parameter should be passed by reference.
2015-01-17 15:19:23 +03:00
Tycho
bfe1960191
Converted Monster to std::chrono
2015-01-16 14:38:21 +00:00
Tycho
05c40db060
Converted cPickupEntity to std::chrono
2015-01-16 13:56:18 +00:00
Tycho
8dc9cf0c76
Converted MinecartEntity to std::chrono
2015-01-16 13:42:44 +00:00
Tycho
7562a381c0
Converted cExpOrbEntity to std::chrono
2015-01-16 13:27:10 +00:00
Tycho
d6f042da4a
Converted ArrowEntityTiers to std::chrono
2015-01-16 13:13:23 +00:00
Tycho
acc2dcbbc3
Fix trailing whitespace
2015-01-11 21:53:20 +00:00
Tycho
2a9664d6ca
Initial convertion of a_Dt to std::chrono
...
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2015-01-11 21:12:26 +00:00
Tycho
4f75b94c99
Created new type cTickTime and rewrote cWorld::TickThread to use it
2015-01-11 01:54:18 +00:00
Mattes D
7d13a2a77a
Fixed Linux compilation.
2015-01-03 22:39:55 +01:00
Mattes D
06c2669cf6
Protocols: Ignore garbage data at the end of PluginMessage packets.
...
Fixes #1692 .
2015-01-03 22:24:15 +01:00
Mattes D
35a3a1b9f4
cByteBuffer: Improved SingleThreadAccessChecker performance.
...
But it's still poor and unusable for regular testing.
2015-01-03 22:24:12 +01:00
Mattes D
19ff14752e
MobHead: Fixed wither spawning.
2014-12-25 20:41:27 +01:00
Mattes D
eddbce64be
MobHeads: fixed regular head placement.
2014-12-25 20:41:12 +01:00
Mattes D
9e478c6f29
Fixed door placement.
2014-12-25 01:00:51 +01:00
Mattes D
1af6210466
Fixed forgotten big flower handler.
2014-12-25 00:51:24 +01:00
Mattes D
3da6e4374e
Fixed basic style.
2014-12-25 00:44:09 +01:00
Mattes D
081e7ddd02
cIsThread: Fixed a race condition on thread start.
2014-12-25 00:34:54 +01:00
Mattes D
1d593134da
Merge pull request #1686 from mc-server/PlaceBlockRefactor
...
Place block refactor
2014-12-25 00:31:56 +01:00
Mattes D
5609d76ed7
APIDump: Updated the player block placement documentation.
...
The hooks now have fewer parameters but are called on all player-placed blocks (#1618 ).
2014-12-24 20:02:51 +01:00
Mattes D
f07784b92f
Fixed redstone dust placement on upside-down slabs.
2014-12-24 19:44:15 +01:00
Mattes D
e09348c05d
ByteBuffer: SingleThreadAccessChecker is request-only.
...
It slows the server down way too much, so it can't be turned on by default.
2014-12-24 09:13:58 +01:00
Mattes D
63de5f8a55
Replaced a std::hash specialization with explicit type.
...
std::hash is problematic in gcc / clang, one has a class, the other a struct.
2014-12-24 08:38:37 +01:00
Mattes D
9c5463be1e
gcc compilation fix.
2014-12-24 07:32:31 +01:00
Mattes D
ccdf03daaf
Refactored all player block placing to go through hooks.
...
Fixes #1618 .
2014-12-24 07:20:17 +01:00
Mattes D
075b19c7cb
Added Vector3::TurnCW() and Vector3::TurnCCW()
2014-12-24 06:43:28 +01:00
worktycho
9fde173142
Init Mojang API pointer
...
Fixes CID 90583
2014-12-23 00:41:46 +00:00
Jonathan Fabian
fbd0cf74bd
Fix compile error on OS X introduced by commit ecf778bbec
...
The following error occurs on OS X with the order reversed: `MCServer/src/World.cpp:282:2: error: field 'm_LastSave' will be initialized after field 'm_LastUnload' [-Werror,-Wreorder] m_LastSave(0),`. Reversing the order of initialization fixes this.
2014-12-21 23:02:02 -05:00
Jonathan Fabian
ae8c871565
Added Depth Strider enchantment
2014-12-21 22:25:27 -05:00
Mattes D
f232704203
WSSAnvil: Added clamping to entity coords.
...
Fixes CID 72854.
2014-12-21 22:37:48 +01:00
Mattes D
e192da5316
FastNBT: Added a sanity check for number of list items.
...
Fixes CID 55812.
2014-12-21 22:25:01 +01:00
Mattes D
afdd53729c
cChunk: Fixed missing initialization.
...
Fixes CID 72670.
2014-12-21 22:19:53 +01:00
Mattes D
ecf778bbec
cWorld: Moved initialization into constructor.
...
Fixes CID 71781.
2014-12-21 22:19:22 +01:00
Mattes D
fe00c99c95
cEndGen: Fixed unitialized member variables.
...
Fixes CID 43671.
2014-12-21 21:59:44 +01:00
Mattes D
c9697083e5
cNoise3DComposable: Fixed unitialized member variables.
...
Fixes CID 43665.
2014-12-21 21:56:34 +01:00
Mattes D
d4c3821eca
Fixed coverity issues in protocols.
...
Fixes CID 73099, CID 66411.
2014-12-21 20:01:42 +01:00
Mattes D
9e9459a367
Fixed a possible division by zero.
2014-12-21 19:48:29 +01:00
Tiger Wang
0d6672bf5d
Fixed crash on restart
2014-12-21 14:31:20 +00:00
Mattes D
d4c9daddb8
Merge pull request #1682 from Masy98/entities
...
Added Rabbits
2014-12-21 15:18:42 +01:00
Tiger Wang
9755c5ba69
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-12-21 11:57:01 +00:00
Masy98
5695649bb9
Fixed damn empty line with no use
2014-12-20 13:04:42 +01:00
Masy98
7903ee485e
Added Rabbit.h and Rabbit.cpp to the CMakeList
2014-12-20 11:41:23 +01:00
Masy98
3d2b1875a1
Fixed Rabbit size
2014-12-20 10:38:56 +01:00
Masy98
6e8e1c6d8d
Added Rabbits
2014-12-20 10:31:34 +01:00
Masy98
5cfb6063c3
Fixed Guardians size and health
2014-12-19 16:06:43 +01:00
Masy98
f09c6701eb
Guardian can now spawn if wanted!?
2014-12-18 20:44:39 +01:00
Masy98
706b9181e6
Merge branch 'master' into entities
2014-12-18 19:32:48 +01:00
Masy98
c836b52dd1
Added Entity Guardian
2014-12-18 19:30:32 +01:00
Tiger Wang
dd1df3b6f7
Fix repeater unpowering
2014-12-18 00:22:46 +00:00
Howaner
c2926f8de1
derp
2014-12-17 20:08:55 +01:00
Howaner
fff108f20a
Added comment.
2014-12-17 19:16:35 +01:00
Howaner
5c99f3fada
Fixed eMonsterType lua bugs.
2014-12-17 17:28:24 +01:00
Mattes D
a7e115ee3e
Merge pull request #1674 from gushromp/master
...
Fix for water spreading on bottom of the world
2014-12-17 14:53:41 +01:00
Ivan Đorđević
99055f644b
Removed unneeded newlines
2014-12-17 11:25:59 +01:00
Mattes D
4947880a5d
Merge pull request #1581 from mc-server/redstone
...
Resplit redstone .inc file and provided improvements
2014-12-17 08:38:23 +01:00
Tiger Wang
8d9049603b
NULL -> nullptr
2014-12-16 23:18:59 +00:00
gushromp
c2d32ce31b
Merge branch 'master' of https://github.com/gushromp/MCServer
...
Conflicts:
src/Simulator/FloodyFluidSimulator.cpp
2014-12-16 22:58:23 +01:00
gushromp
fd325e3990
Fixed water from spreading on bottom of world
2014-12-16 22:54:39 +01:00
gushromp
6cf3aa70f1
Fixed water from spreading on bottom of world
2014-12-16 22:38:57 +01:00
gushromp
b9977a39c3
Added braces to 'if' according to the code guidelines
2014-12-15 18:41:47 +01:00
blashyrk
4e5d2c36e9
Updated cPlayer::DoMoveToWorld to send target world's weather info to Player
2014-12-15 17:45:42 +01:00
Howaner
b3e5872c22
Fixed mob invisibility
2014-12-14 17:48:30 +01:00
Howaner
6436fe73ca
Merge branch 'master' into Cocoa
2014-12-14 13:14:58 +01:00
Howaner
bed456033f
"& 0x0f" isn't needed
2014-12-14 13:14:48 +01:00
Howaner
2a8c234f46
Fixes
2014-12-13 20:31:37 +01:00