Vincent
4b08ca261b
Fixed indent problems and added return definitions to CheckMultiLogin().
...
Changed from IsAllowMultiLogin() to DoesAllowMultiLogin().
Fixed CheckMultiLogin() to not run to the end without returning a value.
2014-12-09 03:06:25 -08:00
Vincent
e9a27db028
Changed DoWithPlayer to auto instead of using iterator.
2014-12-08 15:58:46 -08:00
Vincent
12c012fa01
Changed CheckMultiLogin() to not have main body wrapped in an if statement.
...
Added in indent to cPlayerListCallBack in cCallback class inside CheckMultiLogin().
Added doxy-comment for DoWithPlayer().
Changed comments on IsPlayerInQueue() and IsAllowMultiLogin() to doxy-comments.
2014-12-08 14:33:59 -08:00
Vincent
e28cc876c4
created callback in Root and changed CheckMultiLogin() to use the DoWithPlayer function at Root instead of World.
2014-12-08 00:57:46 -08:00
Vincent
6de07d4a39
Fixed compile errors
2014-12-08 00:45:29 -08:00
Vincent
656964dc38
removed last space in handlehandshake
2014-12-08 00:19:33 -08:00
Vincent
ed09e76023
Changed HandleHandshake to return the result of CheckMultiLogin instead of just true since it already returns true if it finds and kicks the current player.
2014-12-08 00:16:09 -08:00
Vincent
d8d3b9aec5
Moved the check into a new function and just calls that function and a blank FindAndDoWithPlayer added.
2014-12-08 00:12:48 -08:00
Vincent
83c728fce4
Merge branch 'issue_1253' of https://github.com/p-mcgowan/MCServer into issue_1253
2014-12-07 12:45:39 -08:00
Vincent
8edfd78295
changed from using iterator to auto for server and clienthandle
2014-12-07 12:41:42 -08:00
vincentleung1
438a9b04cb
Changed Kick message
2014-11-29 16:05:22 -08:00
vincentleung1
9caa3b19c1
removed extra space and fixed some formatting in cCallback
2014-11-29 15:59:48 -08:00
Vincent
20dcceb7e6
removed GetUsernames() from World
2014-11-29 15:46:31 -08:00
Vincent
72797b14fe
Uses callback for players already in World.
2014-11-29 15:44:38 -08:00
Vincent
a7bf2725c8
fixed naming of strings and changed from i to I
2014-11-29 11:22:03 -08:00
Vincent
61e761fdc2
issue 1253 - prevent multiple logins with same username
2014-11-29 00:36:15 -08:00
Mattes D
883230abbc
Merge pull request #1619 from mc-server/WarningFixes
...
Warning fixes
2014-11-28 22:46:58 +01:00
Mattes D
1480cdb944
Chunk: Fixed same-name iterators.
2014-11-27 23:15:08 +01:00
Mattes D
4545b8eed9
OctavedNoise: Another unshadowed local variable.
2014-11-27 23:13:40 +01:00
Mattes D
12ad2a07c0
Minecart.h: Fixed integral conversion warning.
2014-11-27 22:50:18 +01:00
Mattes D
2cff4e8c83
RidgedNoise: Replaced fabs with std::abs().
2014-11-27 22:48:31 +01:00
Mattes D
9f24c0c4da
OctavedNoise: Unshadowed a local variable.
2014-11-27 22:44:02 +01:00
Mattes D
a6ed5cb1d8
BlockEntities: Removed the extra semicolon.
2014-11-27 22:42:08 +01:00
Mattes D
186b2f3bd0
Replaced auto_ptr with unique_ptr.
2014-11-27 21:27:03 +01:00
Mattes D
61ce09e4d0
CompoGenBiomal: Fixed signed vs unsigned comparison.
2014-11-27 21:24:03 +01:00
Mattes D
e3e13f552f
Fixed BlockStringToType return value.
...
-1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
2014-11-27 21:19:52 +01:00
Mattes D
a971dee379
CMake: Fixed linux builds.
2014-11-26 12:45:53 +01:00
Mattes D
a9e77fe7da
cRoot: Fixed a memory leak with cRankManager.
2014-11-26 11:00:46 +01:00
Mattes D
413e5c20fe
Windows: Fixed builds with LeakFinder enabled.
2014-11-26 11:00:21 +01:00
Mattes D
0ca891da6d
WSSAnvil: Fixed bad code in arrow loading.
2014-11-26 10:14:11 +01:00
Mattes D
e88b93089f
Merge pull request #1617 from mc-server/ReachDistance
...
ClientHandle: Fixed max block place distance check.
2014-11-25 22:46:17 +01:00
Mattes D
c1a52dc9fb
ClientHandle: Fixed max block place distance check.
...
Fixes #1492
2014-11-25 21:24:25 +01:00
Mattes D
9f4562289e
Merge pull request #1604 from mc-server/GeneratorShapeRefactor
...
Generator shape refactor
2014-11-24 21:56:25 +01:00
Mattes D
e23bde503f
Merge pull request #1611 from mc-server/SpawnPrepare
...
cWorld: Rewritten spawn preparation.
2014-11-24 15:39:05 +01:00
Mattes D
3e068a01a8
Changed back capitalization.
2014-11-24 13:44:15 +01:00
Mattes D
478bbad5ed
Added TwoHeights shape generator.
...
This is a faster shape generator that can generate overhangs and has biome awareness.
2014-11-23 18:16:20 +01:00
Mattes D
9f4342434b
Noise3D generator: Enlarged averaging to avoid steep beach slopes.
2014-11-23 15:10:55 +01:00
Mattes D
e9797c6a2a
Merge remote-tracking branch 'origin/master' into GeneratorShapeRefactor
2014-11-23 12:33:04 +01:00
Mattes D
dea8b684b2
Merge pull request #1612 from p-mcgowan/pigsIntoZombiePigmenOnLightning
...
pigs turn into pigmen on lightning
2014-11-23 09:27:46 +01:00
p-mcgowan
7a08c05787
formatting - newline at EOF inserted: Pig.cpp
2014-11-22 15:48:05 -08:00
p-mcgowan
d1b7a965d1
pigs turn into pigmen on lightning
2014-11-22 15:33:34 -08:00
Mattes D
075daf9beb
Merge pull request #1610 from p-mcgowan/villagersIntoWitchOnLightning
...
Villagers into witch on lightning
2014-11-22 18:39:17 +01:00
Mattes D
b520f336da
cWorld: Rewritten spawn preparation.
...
It now supports pregeneration distance of any size and runs in two threads in parallel (generator / lighting).
Fixes #1597 .
2014-11-22 16:00:19 +01:00
Mattes D
f0266c578e
InfoReg: Added a diagnostic for bad Info.lua command info.
2014-11-22 13:31:58 +01:00
p-mcgowan
793b1012c4
formatter error
2014-11-21 23:58:35 -08:00
p-mcgowan
635e9321c6
villagers turn into witches on lightning
2014-11-21 23:36:35 -08:00
p-mcgowan
ac2e3ede1d
villagers turn into witches when struck by lightning
2014-11-21 23:20:44 -08:00
Mattes D
a05a318cdd
cWorld: Changed generator defaults.
2014-11-20 22:51:07 +01:00
Mattes D
1ed32b825e
BiomalNoise3D generator: finished all biomes.
2014-11-20 22:48:14 +01:00
Mattes D
b7dd2dddf9
CompoGenBiomal: Fixed sealevel offset.
2014-11-20 22:45:50 +01:00