madmaxoft
1c16862ae5
CMake: Use cmake for file-copying.
...
This should enable MSYS builds.
2014-07-02 16:30:45 +02:00
Howaner
4a9002045b
Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()
2014-07-02 14:46:00 +02:00
Tiger Wang
284c1c0514
Vector clamping fixes
...
Thank you, @madmaxoft.
2014-07-01 22:39:37 +01:00
madmaxoft
7177806d31
Fixed printf formats for Win builds
2014-07-01 22:48:01 +02:00
madmaxoft
b6d5d50b31
Tolua generates LuaState_Call.inc file.
2014-07-01 22:29:39 +02:00
madmaxoft
bb0e88fcf8
Initial codegen for LuaState_Call.inc.
2014-07-01 22:29:38 +02:00
madmaxoft
0dfaad4123
Fixed a possibly unused variable.
2014-07-01 22:28:58 +02:00
Howaner
68007ab3e5
Add doxy-comments.
2014-07-01 20:42:23 +02:00
Howaner
64e6667435
Only fixes the server crash.
2014-07-01 20:34:50 +02:00
Howaner
64f6ddf1e2
Fix server-crash with non-existing items.
2014-07-01 14:47:49 +02:00
Mattes D
4f60f5aef4
Fixed linking order under MinGW.
...
Ref.: #1044
2014-07-01 06:40:38 +02:00
Mattes D
f9f3f7eac5
Fixed size_t printfing under MinGW.
2014-06-30 21:58:23 +02:00
Howaner
8e11f7a1f6
Fixes.
2014-06-30 21:50:40 +02:00
madmaxoft
a5a0533d79
Fixed cFile compilation under MinGW.
2014-06-30 21:41:38 +02:00
Howaner
c3cde6232f
Moved the random code to a function (cSheep::GenerateNaturalRandomColor())
2014-06-30 20:23:17 +02:00
Tiger Wang
85fae0e521
Implemented Vector3<>::Floor()
2014-06-30 19:21:21 +01:00
Tiger Wang
b94fef3089
Removed unneeded code
2014-06-30 19:15:10 +01:00
Howaner
aa753a92c0
Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGE
2014-06-30 15:12:56 +02:00
Howaner
4ded58bfd1
Unnecessary return
2014-06-30 14:19:31 +02:00
Tiger Wang
b9d4431f6f
Fixed respawning
...
* Fixes #1103
2014-06-29 22:44:16 +01:00
Tiger Wang
428cfb5c21
Suggestions
2014-06-29 22:41:31 +01:00
Mattes D
3c631fc0f9
Fixed offline UUID generator.
...
It generated invalid UUIDs, too many hex chars.
2014-06-29 18:27:41 +02:00
Tiger Wang
909e0ed95b
Removed bad comment
2014-06-29 11:41:50 +01:00
Tiger Wang
dde641ce83
Properly implemented enderchests
2014-06-29 11:36:38 +01:00
Howaner
50e112788b
Send statistics to the player, when he logged in.
2014-06-29 01:40:15 +02:00
Howaner
20b32fc44e
Code fixes.
2014-06-29 01:01:10 +02:00
Mattes D
1b89b997ff
Merge pull request #1132 from mc-server/RemoveMD5
...
Removed the md5 library, obsoleted by PolarSSL.
2014-06-29 00:46:11 +02:00
Tiger Wang
536cb62f1c
An unification of code style
2014-06-28 21:14:10 +01:00
Tiger Wang
35dc056f03
Likely fixed too quick food depletion
...
* Fixes FS427 properly, hopefully
2014-06-28 21:10:59 +01:00
STRWarrior
085cb4256e
Fixed doxycomments
2014-06-28 21:55:21 +02:00
Tiger Wang
5e66d9aeab
Fixed issue with breaking blocks at -1 coordinates
2014-06-28 20:45:05 +01:00
Tiger Wang
61cb08b546
Implemented tripwire(s) (hooks)
...
* Fixes #944
2014-06-28 20:44:34 +01:00
Mattes D
1495bba17c
Fixed a silly path error in #include.
2014-06-28 18:20:46 +02:00
Mattes D
48639ee4d2
CMake: Added polarssl include dir as non-system.
2014-06-28 18:16:26 +02:00
Howaner
11d02a447e
Save IsSheared from Sheep.
2014-06-28 13:19:32 +02:00
Howaner
bef84b4821
Fix sheep color's, add shear sound.
2014-06-28 12:59:09 +02:00
Mattes D
3e104c25e9
Changed include folders to work for Bindings, too.
2014-06-28 12:49:08 +02:00
Tiger Wang
de543ff73f
Added more block exceptions to torches
2014-06-28 00:29:32 +01:00
Tiger Wang
0a20e19a64
Minor change to buttons and levers
...
+ They now detect if the block they are on occupies its voxel, instead
of just being solid
2014-06-28 00:29:19 +01:00
Tiger Wang
69befa9851
Fixed bad water/redstone simulator communication
...
* Fixes #713
2014-06-27 23:16:37 +01:00
Tiger Wang
b6df30831d
Fixed server forcing players afloat
...
* Fixes #1131
2014-06-27 23:13:26 +01:00
Mattes D
9926abd4f5
Added generic entity-collecting.
...
Now any cEntity can be collected, not only cPickups.
This should help PR #1098 .
2014-06-27 20:56:44 +02:00
Mattes D
d7bc5c5bd3
Added PolarSSL dependency to Bindings.
2014-06-27 20:23:05 +02:00
Mattes D
563f706422
Removed the md5 library, obsoleted by PolarSSL.
...
Fixes #1130 .
2014-06-27 19:34:53 +02:00
worktycho
25a0264cc4
Check GridSize for 0
...
Fixes CID 68226 and CID 66437
2014-06-26 19:04:56 +01:00
worktycho
b832a202ab
Add Null check to SendBlockTo
...
Fixes CID 43611
2014-06-26 18:30:02 +01:00
Mattes D
e60b73ce69
Merged branch 'howaner/Bow'.
...
Removed the pickup collection broadcast due to bad code.
2014-06-26 18:42:28 +02:00
Mattes D
4826990ea0
Merged branch 'howaner/Pickups'.
2014-06-26 18:35:38 +02:00
Mattes D
0df644c9f7
FurnaceRecipe parsing: Fixed whitespace removing.
2014-06-26 18:28:10 +02:00
Mattes D
ec1015112c
Fixed misformed trimming.
2014-06-26 18:20:12 +02:00
Mattes D
55bbdfa5d4
FurnaceRecipe: Moved the parsing into separate functions for clarity.
2014-06-26 18:18:41 +02:00
Mattes D
67e3c645d3
FurnaceRecipe parser: Made the parser more forgiving.
...
Errors don't cause a stop in the parsing, but rather just skip the offending line.
2014-06-26 17:52:37 +02:00
Mattes D
b90b0a1dff
FurnaceRecipe parser: Added an else branch, changed to a switch.
2014-06-26 17:51:19 +02:00
Howaner
bf3229867b
Add comment.
2014-06-26 17:26:47 +02:00
Howaner
cba273dc7e
Fixed a comment and changed CombineCount to short.
2014-06-26 17:20:48 +02:00
Mattes D
3216fbabfd
Merge remote-tracking branch 'origin/furnaceparsing'
2014-06-26 17:11:40 +02:00
Mattes D
7102e9edb0
Merged branch 'tonibm19/master'.
2014-06-26 17:09:28 +02:00
Howaner
9b7f1e3db8
Merge branch 'master' into Pickups
2014-06-26 15:56:44 +02:00
Howaner
f96955496f
GameMode check
2014-06-26 15:56:03 +02:00
Howaner
eaf36766f6
Merge branch 'master' into Bow
2014-06-26 15:49:53 +02:00
Mattes D
af3779ab9a
Merge pull request #1126 from mc-server/BlockInfoInit
...
BlockInfo is now a proper C++ singleton.
2014-06-25 22:23:57 +02:00
madmaxoft
e9aecfdf11
BlockInfo is now a proper C++ singleton.
...
It is properly initialized before it is ever used.
2014-06-25 08:07:06 +02:00
Howaner
dbcb7f819f
Optimize combining.
2014-06-24 17:50:38 +02:00
Howaner
2dd7a0373b
Better combining.
2014-06-24 16:19:22 +02:00
Howaner
d4e1277724
Add entity health saving.
2014-06-24 16:06:26 +02:00
Howaner
5ab01c4d42
Fix pickup combining over the maximum stack size.
2014-06-24 15:27:19 +02:00
madmaxoft
a1d2c114cf
Fixed BlockInfo initialization.
...
Now cBlockInfo is initialized in the getter, instead of "at any time during startup", which included "after it was already needed".
2014-06-24 13:49:14 +02:00
Mattes D
1da39568a3
Added asserts for cChunk::GetBlockEntity() coords.
2014-06-24 09:46:38 +02:00
Mattes D
742370497a
Fixed crashes in HopperEntity.
...
Some of the coords were off and some functions were assuming too much.
Fixes the crash reported in http://forum.mc-server.org/showthread.php?tid=1497
2014-06-24 09:46:04 +02:00
Tiger Wang
7a23692131
Parenthesised comparison
2014-06-23 17:40:51 +01:00
madmaxoft
59270fd44d
VoronoiMap: Added a missing initializer.
...
Fixes CID 68410.
2014-06-23 17:06:38 +02:00
madmaxoft
6a77705d4e
Added a (disabled) block meta mirror / rotate test code.
...
This will perform basic sanity checks on block metadata mirroring and rotating. cMetaRotator must disable its asserts in order for this to work.
2014-06-23 07:23:54 +02:00
madmaxoft
dd6a9f6559
Fixed the slab vertical mirroring.
2014-06-23 00:15:56 +02:00
madmaxoft
d61ff4da3b
Fixed sign and lever rotations.
2014-06-23 00:15:55 +02:00
madmaxoft
82dcc0b4db
Prefabs don't draw into chunk if they don't intersect.
2014-06-23 00:15:55 +02:00
Tiger Wang
dc8817feee
Merge remote-tracking branch 'origin/furnaceparsing' into furnaceparsing
...
Conflicts:
src/FurnaceRecipe.cpp
2014-06-22 21:51:21 +01:00
Tiger Wang
c476fc3cf5
Suggestions
2014-06-22 21:49:37 +01:00
Tiger Wang
dad0037f98
Bettered zombie and skeleton AI
...
* Fixed potential issues with skylight detection
2014-06-22 20:44:55 +01:00
Tiger Wang
4238b0ebe8
Some Entity.cpp style improvements
2014-06-22 20:44:18 +01:00
Tiger Wang
33cc1f2a50
Fixed multiple issues with projectiles
...
* Fixed arrows not being collectable/not truly hitting a block/not
lodging into blocks/not going in far enough
* Fixed projectiles not playing their block hit animation owning to
being destroyed too quickly
2014-06-22 20:44:01 +01:00
Mattes D
fe95dfa758
Merge pull request #1105 from Howaner/Blocks
...
Added door and fence gate sounds.
2014-06-22 20:56:24 +02:00
Howaner
bebfb230da
Changed 0xFFFFFFFB to ~0x04
2014-06-22 17:29:02 +02:00
Tiger Wang
c13cffcd30
Merge branch 'master' of https://github.com/mc-server/MCServer
2014-06-22 15:05:02 +01:00
Tiger Wang
3ec8b33b76
Fixed another daylight sensor bug
...
Additionally fixed unpowering across chunks.
2014-06-22 15:04:23 +01:00
Tiger Wang
b2bf466122
Chests don't open if obstructed
...
* Fixes FS383
2014-06-22 14:47:05 +01:00
worktycho
3c0452ebef
Fixed missing break
...
Fixes CID 68409
2014-06-22 14:17:07 +01:00
worktycho
119ba562d5
Fixed invalid iterator
...
Fixes CID 60408
2014-06-22 14:15:41 +01:00
worktycho
63ce2e8b37
Fixed compile errors
2014-06-22 12:30:37 +01:00
Tiger Wang
4a01fba3aa
Suggestions
2014-06-22 00:06:58 +01:00
madmaxoft
08fed2a213
Added cClientHandle::IsUUIDOnline function.
...
Ref.: #771
2014-06-21 22:13:35 +02:00
Tiger Wang
537467fe25
Removed debugging code
2014-06-21 20:35:28 +01:00
Tiger Wang
a908f39dde
Rewrote furnace recipe parser
...
* Fixes #110
2014-06-21 20:33:23 +01:00
madmaxoft
0a95d04ab3
Added a TestRails generator.
...
This is for debugging purposes only.
2014-06-21 20:19:44 +02:00
madmaxoft
9a57c590cd
Fixed a caching bug in GridStructGen.
...
The elements in cache were queried wrong, so sometimes they wouldn't be used even if they were the ones to use.
2014-06-21 20:17:17 +02:00
madmaxoft
0e8c4ca5ab
Updated prefabs to the latest Gallery content.
2014-06-21 15:02:40 +02:00
madmaxoft
b4ba86d758
Updated all prefabs to current Gallery content.
2014-06-20 22:45:08 +02:00
madmaxoft
79c1966290
MCA saver marks chunks as populated.
...
Fixes #140 .
2014-06-20 21:30:11 +02:00
madmaxoft
9db9445e9f
Optimized Voronoi calculation.
...
Fixes #818 .
2014-06-20 17:10:18 +02:00
tonibm19
3e15c92d18
Added pig riding.
...
Now you can ride a pig using a carrot on a stick.
2014-06-20 10:50:21 +02:00
archshift
e8143de01b
Nullify deleted pointers.
2014-06-19 01:49:56 -07:00
archshift
f5529e544c
EntityEffects.x -> EntityEffect.x, Object-Oriented effects
...
Changed effect map to take a pointer of the effect as a result.
2014-06-18 22:54:14 -07:00
Alexander Harkness
35a4aa419c
Merge pull request #1096 from mc-server/redstonerefactor
...
Moved delayed repeaters to be handled in a seperate pass
2014-06-18 21:22:53 +01:00
Mattes D
c30b7b8735
Merge pull request #1045 from Howaner/GlobalFixes
...
Little fixes
2014-06-18 18:23:18 +02:00
STRWarrior
e0a9f37d90
(Force)ExecuteCommand returns the CommandResult enums
...
Exported and documented the CommandResult enums
2014-06-18 12:13:01 +02:00
archshift
21b9253ee6
Merge pull request #1100 from Howaner/Slabs
2014-06-18 00:47:08 -07:00
archshift
68c30790db
Entity effects: changed User to Creator, removed pawn pass-by-value
2014-06-17 11:39:22 -07:00
madmaxoft
fa1d85feca
Added the OnEntityAddEffect hook.
2014-06-17 11:39:22 -07:00
archshift
9e8361976b
Entity Effects: Clarified user, added it to AddEntityEffect
...
Added second AddEntityEffect with a pass-by-value of the class.
2014-06-17 11:39:22 -07:00
madmaxoft
e289fe4dd7
Changed the AddEntityEffect() params for easier calls.
2014-06-17 11:39:21 -07:00
archshift
22761bb6ad
Entity Effect: Separates total duration and ticks of activity
...
Changed HandleEntityEffect to use cEntityEffect's ticks instead of a static counter
2014-06-17 11:39:21 -07:00
madmaxoft
045ae2ef2c
Fixed MSVC compilation.
2014-06-17 11:39:21 -07:00
archshift
5b2b6e0615
Pawn: renamed HandleEntityEffects to HandleEntityEffect
...
Exported entity effect functions for ToLua and documented them in APIDesc.lua
2014-06-17 11:39:21 -07:00
archshift
71b4c49490
Cave spider now poisons its victim, added IsPawn function to Entity
2014-06-17 11:39:21 -07:00
archshift
814cdca054
Added wither damage type, wither entity effect.
2014-06-17 11:39:21 -07:00
archshift
2574573c88
Monster: added IsUndead(), undead-specific entity effects
2014-06-17 11:39:20 -07:00
archshift
52abd90a28
Applies splash potion effects to mobs as well as players
2014-06-17 11:39:20 -07:00
archshift
68011a004a
Removed long function wrapping
2014-06-17 11:39:20 -07:00
archshift
3766ac96d7
ItemHandler: changed IsDrinkable() to take a short argument
2014-06-17 11:39:20 -07:00
archshift
a1a8b7c0ee
Splash potion: Adjusted speed, fixed spawn position
2014-06-17 11:39:20 -07:00
archshift
73cea7065d
Entity effect type: use 'eff' as a prefix instead of 'ef'
2014-06-17 11:39:20 -07:00
archshift
58f35af6e7
Added splash potion functionality
2014-06-17 11:39:20 -07:00
archshift
5803094d7d
Entity: only fire critical hit if damage type is physical
2014-06-17 11:39:20 -07:00
archshift
8eceaf9b0c
Player: made healing instantaneous
2014-06-17 11:39:20 -07:00
archshift
2185c72c2c
Implemented drinkable potions, noeffect entity effect,
...
Clears entity effects on death
2014-06-17 11:39:20 -07:00
archshift
1eb04a48ee
Implemented milk, added documentation to Pawn.h
2014-06-17 11:39:19 -07:00
archshift
615152eb8c
Pawn.cpp: fixed effect iterator BAD_ACCESS
...
Erasure was occurring before the iterator increased, causing a bad access. Solved by storing map pairs in variables and manually updating iterator before erasure.
Fixed mix-up in function arguments on food poisoning
2014-06-17 11:39:19 -07:00
archshift
e98ffccd80
Pawn: Enabled entity effect broadcast, added typedef
...
Typedef'd std::map<cEntityEffect::eType, cEntityEffect> to tEffectMap
2014-06-17 11:39:19 -07:00
archshift
a9a4c9c6b2
EntityEffect: read-only getters, added user and distance modifier fields
...
User: the pawn that uses or produces the entity effect (drinks/throws a potion)
Distance modifier: the potency modifier from splash potion effectivity radius
2014-06-17 11:39:19 -07:00
archshift
2123173202
Player: Removed food-poisoning-specific code, set duration to 30 seconds
...
http://minecraft.gamepedia.com/Hunger#Behavior
2014-06-17 11:39:19 -07:00
archshift
481f05b011
Entity effects: Added handlers for entity effects
...
Implemented hunger, instant health, damage, poison, regen
Added "template" entity effect implementations
2014-06-17 11:39:19 -07:00
archshift
90145a9514
Added iterator on tick to manage entity effect duration
2014-06-17 11:17:33 -07:00
archshift
aa7b3f33b9
cPawn: Remove unused m_bBurnable
2014-06-17 11:17:33 -07:00
archshift
87b1bfaf2a
Moved Effects.h to EntityEffects.h, added initial impl
2014-06-17 11:17:32 -07:00
archshift
c1692a2e3b
Added classes for splash potions and wither skulls
2014-06-17 11:17:32 -07:00
Howaner
2da7768298
Merge branch 'master' into Blocks
2014-06-17 19:50:26 +02:00
Howaner
bcf798f260
Fix fence gate sound (Redstone simulator).
2014-06-17 19:47:32 +02:00
worktycho
2f2071afc1
Merge pull request #1101 from Howaner/FenceGate
...
Fix fence gate redstone simulator.
2014-06-17 18:39:21 +01:00
Howaner
bde51d8778
Add fence gate sound.
2014-06-17 19:08:36 +02:00
Howaner
c60ba8a52d
Merge branch 'master' into GlobalFixes
2014-06-17 19:03:56 +02:00
Howaner
8de8768f02
Add UNUSED() Tags
2014-06-17 17:01:23 +02:00
Howaner
0d08b9a62e
Add door sound
2014-06-17 17:00:51 +02:00
STRWarrior
008a6ce311
Added crBlocked and crNoPermission
2014-06-17 16:19:31 +02:00
STRWarrior
15ae4ce233
HandleCommand now returns an CommandResult enum.
2014-06-17 14:55:15 +02:00
Howaner
8e927e6e2b
Check block type from cBlockEntity
2014-06-17 14:45:29 +02:00
Mattes D
f682646d3a
Merge pull request #1099 from Howaner/Blocks
...
Glass-made blocks don't drop pickups.
2014-06-17 14:03:24 +02:00
Howaner
7e985f3c7d
Add more documentation.
2014-06-17 13:44:07 +02:00
Howaner
ce06ec1632
derp
2014-06-17 13:33:41 +02:00
STRWarrior
8928310fd8
Fixed possible confusion.
...
If a command handler gets an error then the player will receive an unknown command error. This can be confusing for players.
2014-06-17 13:27:04 +02:00
Howaner
da88c98034
Add comment.
2014-06-17 13:25:36 +02:00
Howaner
a4d4621fbe
Add parenthesis
2014-06-17 12:47:18 +02:00
Howaner
37de63895f
The same: Float, not Double
2014-06-17 12:45:12 +02:00
Howaner
d89f03b90c
Float, not Double
2014-06-17 12:43:45 +02:00
Howaner
1086b8ba05
Revert "Fix right click bugs."
...
This reverts commit 61b6fdde75
.
2014-06-17 01:18:09 +02:00
Howaner
46b84aa8b6
The motion is already set in AddBasicEntity()
2014-06-17 01:17:35 +02:00
Howaner
a89524d533
Add DoWithBlockEntityAt() to WorldInterface.h
2014-06-17 01:15:38 +02:00
Howaner
1316d2d24d
Add end lines to BlockPressurePlate.h
2014-06-17 00:41:31 +02:00
Howaner
43ff96f664
Add pressure plate handler
2014-06-17 00:40:35 +02:00
Howaner
a10b716ba2
Fix fence gate redstone simulator.
2014-06-17 00:22:57 +02:00
Howaner
a1fd0b0335
Split Broadcast Sound Effect function call in multiple lines.
2014-06-16 23:41:23 +02:00
Howaner
9dea609194
Fix doubleslab meta.
2014-06-16 23:35:30 +02:00
Howaner
7c4b8306aa
Glass shouldn't drop.
2014-06-16 23:05:29 +02:00
Howaner
b45e85a678
This isn't needed
2014-06-16 22:57:27 +02:00
Howaner
885a50d77a
Fix bow sound and creative arrow pickup.
2014-06-16 22:57:13 +02:00
madmaxoft
d6979ad95d
Fixed GCC compilation.
2014-06-16 22:53:08 +02:00
madmaxoft
9c3086d88c
Fixed MSVC builds.
2014-06-16 22:42:50 +02:00
Howaner
e50423991e
Add bow charging animation
2014-06-16 21:57:23 +02:00
Tycho
74cd730589
FIxed second weird enum
2014-06-16 18:06:09 +01:00
Tycho
6fa99a211e
Refactored reversing logic into seperate function
2014-06-16 17:55:58 +01:00
worktycho
4fddbf9dfc
Merge pull request #883 from mc-server/CutOffLighting
...
Lighting reads blocktypes only for blocks under heightmap.
2014-06-16 17:37:07 +01:00
madmaxoft
d379f27ea4
Fixed gcc compilation.
2014-06-16 16:51:30 +02:00
Tycho
3a7c0c8ce9
Fixed tigers weird enums
2014-06-16 15:29:49 +01:00
Tycho
d5c84b5fe6
Merge branch 'master' into redstonerefactor
...
Conflicts:
src/Simulator/IncrementalRedstoneSimulator.cpp
2014-06-16 15:22:02 +01:00
Tycho
ee50790398
Merge branch 'master' of github.com:mc-server/MCServer
2014-06-16 15:12:50 +01:00
Tycho
aa3537112d
Moved repeater handling to seperate pass
2014-06-16 15:07:41 +01:00
Tycho
84c83e0deb
Fix a few warnings
2014-06-16 15:03:07 +01:00
madmaxoft
6b503b45a0
Fixed a copypasta error in WormNestCaves generator settings.
2014-06-16 14:53:33 +02:00
madmaxoft
c41299b4d4
Updated the SandFlatRoofVillage prefabs.
2014-06-16 10:18:44 +02:00
madmaxoft
d9719e696c
Added random offsets to cGridStructGen.
...
Fixes #740 .
2014-06-15 23:34:44 +02:00
Mattes D
a72ec6300d
Merge pull request #1090 from mc-server/saveoncrash
...
Data is saved on crash
2014-06-15 23:16:37 +02:00
Tiger Wang
abbd11be6d
Players are saved regularly
...
* Fixes #1076
2014-06-15 20:28:08 +01:00
Tiger Wang
f822a46bdb
Fixed bad comparison crash
...
* Fixes #1095
2014-06-15 19:42:14 +01:00
Tiger Wang
2a6ca71a0b
Fixed daylight sensor unpowering
...
* Fixes #1094
2014-06-15 16:27:20 +01:00
Mattes D
c684812b30
Merge pull request #1019 from mc-server/cPlayerSetSpeed
...
cPlayer set speed
2014-06-14 18:57:32 +02:00
madmaxoft
493d364331
Removed an unused tolua_end and tolua_begin pair.
2014-06-14 18:23:27 +02:00
madmaxoft
a89422ea4c
Simplified speed clamping.
2014-06-14 18:16:10 +02:00
madmaxoft
3f009a7c9e
Refactored speed-setting to use a common function for all cases.
2014-06-14 17:10:53 +02:00
Mattes D
f1e3010839
Fixed bindings generation for Win64 builds.
...
Fixes #1092 .
2014-06-14 15:47:37 +02:00
Mattes D
af981cc718
Fixed MSVC Bindings generation.
2014-06-14 15:00:57 +02:00
worktycho
d5a99d5b78
Remove windows bindings crutch
2014-06-14 13:48:12 +01:00
madmaxoft
f8f7748a09
Merge branch 'master' into cPlayerSetSpeed
2014-06-14 12:06:48 +02:00
Tiger Wang
c1deda5d8f
Fixed a repeater issue
...
* Repeaters now properly continuously update their powering
* Minor cosmetic improvements
2014-06-14 10:47:10 +01:00
Tiger Wang
4b28a24514
Reduced cPluginManager code duplication
2014-06-14 09:51:42 +01:00
Mattes D
90e3e2b4e6
Merge pull request #1089 from mc-server/tolua-auto
...
automaticlly build tolua and generate bindings as part of build.
2014-06-13 16:32:34 +02:00
madmaxoft
f76420ac55
Removed an unused fwd declaration.
2014-06-13 09:38:25 +02:00
tycho
9254666a85
automaticlly build tolua and generate bindings as part of build.
2014-06-12 18:00:53 +01:00
Tiger Wang
1bce1ac432
Fixed two redstone bugs
...
* Fixed chunk border powering
* Fixed quick place-replace powering
2014-06-12 17:13:52 +01:00
Alexander Harkness
db4d786a84
Merge pull request #1082 from mc-server/cauldronfixes
...
Add biome-aware downfall functions.
2014-06-12 16:50:08 +01:00
STRWarrior
a6a87f1996
Merge pull request #1084 from mc-server/PlankRoads
...
Plank Roads
2014-06-11 22:13:05 +02:00
madmaxoft
220e6f5880
DispenserEntity code cleanup after PR merge.
2014-06-11 19:46:24 +02:00
madmaxoft
d6b2660f36
Merge remote-tracking branch 'joannis/master'
2014-06-11 19:38:14 +02:00
STRWarrior
7cf544079f
Roads in villages are made out of wooden planks if they generate on water.
2014-06-11 19:12:29 +02:00
Alexander Harkness
f9fd519360
Changed the teleport permissions to the new ones.
2014-06-11 17:26:10 +01:00
worktycho
70c20d7772
Fixed constness
2014-06-11 17:17:19 +01:00
archshift
aa7c82580f
Player.h: Moved doxy-comments to Entity.h
...
Moved doxy-comments to the defining function in Entity.h rather than the overloaded functions in Player.h
Comment for each function (instead of assumed encapsulating comments)
@deprecated tag for ForceSetSpeed()
2014-06-11 07:52:34 -07:00
Tiger Wang
e24830f0b1
Compile fix
2014-06-11 13:49:57 +01:00
Tiger Wang
1a9467574e
Reduced code duplication
...
call @maxmaxoft!
calling...
call connected (0:20)
call ended
2014-06-11 13:40:34 +01:00
Tiger Wang
f7913d3b74
IsWeatherSunnyAt does something useful :D
2014-06-11 13:37:04 +01:00
madmaxoft
b3300e3854
Added cBlockArea:GetCoordRange to Lua API.
2014-06-11 14:22:27 +02:00
Alexander Harkness
c09207cabc
SMICOLOSL
...
Meant to be semicolons up there.
2014-06-11 13:20:31 +01:00
madmaxoft
7e4abcfe2d
Revert "Initial Mesa Bryce implementation."
...
This reverts commit 1ff1a93866
.
2014-06-11 14:15:18 +02:00
Tiger Wang
711113cd2b
Updated unnecessary function :/
2014-06-11 13:10:10 +01:00
Alexander Harkness
c5010ebcc1
Add DoxyComments to he weather things.
...
Also changed the function names.
2014-06-11 13:01:52 +01:00
Alexander Harkness
c3c3782c67
Add new IsWeatherWet hook for cauldrons.
...
@madmaxoft can you comment?
2014-06-11 10:33:16 +01:00
worktycho
3e25852382
Removed assert that is now informed by type system
2014-06-11 10:04:34 +01:00
madmaxoft
1ff1a93866
Initial Mesa Bryce implementation.
2014-06-10 22:59:45 +02:00
madmaxoft
c259dad7b8
Fixed clang warnings about abs() in Noise.cpp.
...
MSVC provides a float overload of abs(), clang does not. Using the proper fabs().
2014-06-10 18:27:17 +02:00
madmaxoft
366ecf9dfd
Fixed a race condition when adding a player to a world.
2014-06-10 18:25:53 +02:00
madmaxoft
6c43799cc5
Fixed gcc compilation.
2014-06-10 09:20:32 +02:00
madmaxoft
9ff0ef87d4
Added an experimental height generator, Mountains.
2014-06-09 23:40:51 +02:00
madmaxoft
bead36f5ed
Added cRidgedMultiNoise, fixed cPerlinNoise.
2014-06-09 23:38:50 +02:00
madmaxoft
2b45e720ad
Added Y coord checks and documentation to cBlockDoorHandler.
2014-06-09 21:35:46 +02:00
madmaxoft
dcc71a3b7b
Merge remote-tracking branch 'howaner/Redstone'
2014-06-09 21:20:26 +02:00
madmaxoft
02b509b81d
ToLua can now be run in pure-lua mode.
...
See the src/Bindings/AllToLua_lua.bat for usage example.
2014-06-09 17:05:22 +02:00
madmaxoft
ec0976f9b0
Fixed a crash when creating negative-size blockareas.
...
Now the server emits a warning instead and continues execution.
2014-06-09 00:49:02 +02:00
Mattes D
af4a21ea06
Fixed deadlock when moving players to other worlds.
...
Fixes #1039 , fixes #851
2014-06-08 21:58:30 +02:00
Mattes D
b904223b9d
Added queue for adding entities to cWorld.
...
This alone doesn't work properly yet, further changes to cPlayer are needed.
2014-06-08 21:58:29 +02:00
madmaxoft
28b82d5bbb
Proper fix for long interaction.
...
Fixes #1078 and #1038 .
2014-06-08 11:32:52 +02:00
madmaxoft
0544b96f80
docs/Generator: Added the easy Finishers.
2014-06-07 13:59:51 +02:00
madmaxoft
ec40c7c83a
Added RainbowRoads finisher generator.
2014-06-07 13:59:50 +02:00
Tiger Wang
d5649df326
Further improvements on redstone speed
...
Based on suggestions of @worktycho
* Repeaters now walk their data structure only when needed
* Fixed a bug with cChunkData returning an incorrect value for whether a
meta had changed
2014-06-07 10:39:36 +01:00
archshift
b768e54ce8
Fixed mob hitbox sizes, removed TODOs
...
Measured bat and blaze in vanilla, updated values.
Cavespiders are, in fact, passive in the day.
2014-06-07 00:40:01 -07:00
Tiger Wang
5f56773dde
Further reduced redstone idle CPU consumption
...
* Repeaters and wires are no longer unnecessarily ticked
* Fixed #1063 , likely addressed #1062
* Fixed bugs regarding duplicate values
2014-06-06 20:36:50 +01:00
JoannisO
720ae4f757
- Fixed a lot of alignment
2014-06-05 12:26:27 +02:00
Tiger Wang
22236a103a
Redstone fixes and improvements [SEE DESC]
...
Haha, see desc.
* Improved redstone speed through a marking dirty system. Only a select
few devices are still continuously simulated
* Fixed redstone crashing with recent piston changes
2014-06-04 23:23:22 +01:00
Mattes D
c11488ccd7
Merge pull request #1011 from SphinxC0re/SomeWarningFixes
...
Fixed some warnings
2014-06-04 18:02:45 +02:00
Howaner
33fbdedea3
Fix itemframe break.
2014-06-04 15:16:30 +02:00
JoannisO
852e162f95
- Removed the code that removed fireworks from a dispenser even thought
...
they weren't launched.
2014-06-04 12:40:01 +02:00
worktycho
c94d0c8144
derp
2014-06-04 11:39:21 +01:00
JoannisO
e5b345a9c9
- Fixed variable names in a function.
2014-06-04 12:37:51 +02:00
JoannisO
2c103a713e
- Fixed a lot of astethics
2014-06-04 12:35:45 +02:00
worktycho
ae37dfec8d
Fixed bad coordinate
2014-06-04 11:29:08 +01:00
worktycho
98c575ebc2
Make sure m_StackSizeToBeUsedInRepair Always has a valid value
2014-06-04 11:12:06 +01:00
worktycho
85be62a8cd
Removed unused field test
2014-06-04 11:02:17 +01:00
worktycho
87c4d0ea57
Initialise m_Callbacks field to NULL in empty constructor.
2014-06-04 10:58:09 +01:00
Tiger Wang
9ef4b9d52d
Exploded creepers drop nothing, part of #1058
2014-06-04 09:27:50 +01:00
Tiger Wang
c4e0da2d0a
Fixed mob loading, part of #1058
2014-06-04 09:22:19 +01:00
Tiger Wang
8e57f75622
Fixed #1057
2014-06-04 09:21:44 +01:00
Julian Laubstein
8604dedfdf
Update IncrementalRedstoneSimulator.cpp
2014-06-04 10:20:20 +02:00
madmaxoft
c0015d01c6
Player permissions aren't logged to console anymore.
...
This was only logspam on most servers and there are alternative ways to list players' permissions.
2014-06-03 19:50:27 +02:00
JoannisO
7993caa553
- Fixed an issue where there were 2 "DispChunk"-s in the same function.
...
Resused the initial one.
2014-06-03 19:43:15 +02:00
JoannisO
c0716bfcf6
- Fixed a bug where I didn't return anything in the GetShootVector
...
function. This was however passed as "working" by GCC.
2014-06-03 19:39:56 +02:00
madmaxoft
492f99eaeb
Merge remote-tracking branch 'howaner/Inventory'
2014-06-03 19:30:01 +02:00
madmaxoft
d92520016d
Fixed OnProjectileHitBlock bindings.
...
Also sorted the various cLuaState::Push() functions.
2014-06-03 19:29:23 +02:00
Mattes D
0c5492946b
Merge pull request #1028 from mc-server/pistonfixes
...
Piston fixes
2014-06-03 19:02:40 +02:00
JoannisO
2ecf425c39
- Fixed a bug where I used the FireCharge ITEM instead of the Projectile
...
ENUM
2014-06-03 18:19:06 +02:00
JoannisO
daae75b30b
- Cleaned up the code massively
...
- Stopped using cChunk in the GetShootVector class. Parameter is now the
Metadata of the block
- Stopped using cChunk in the SpawnProjectileFromDispenser method now
using coordinates and finding the chunk by itself.
- Removed the matrix calculations from GetShootVector.
2014-06-03 17:21:38 +02:00
Joannis
545478802b
- Added doxy comments and exported to lua
...
- Manipulation of the ShootVector is not to be done by the function that
wants to spawn a projectile.
2014-06-03 09:26:14 +02:00
Mattes D
60786cb06d
Merge pull request #1052 from mc-server/UnderwaterBaseGen
...
Underwater base gen
2014-06-02 21:49:47 +02:00
Tiger Wang
5fc7592cba
Merge remote-tracking branch 'origin/pistonfixes'
...
Conflicts:
src/Chunk.cpp
2014-06-02 19:49:14 +01:00
STRWarrior
b9ca7bd120
Small tweak for mobs
...
Mobs move a bit smoother and aren't able to move allot when in air.
2014-06-02 14:16:36 +02:00
madmaxoft
b7dc4177d0
cBlockArea reading hotfix.
...
This should fix the crashes introduced with chunksparsing. Not the most performant solution, but at least it should work.
Ref.: #1056
2014-06-02 14:07:36 +02:00
madmaxoft
23b0823108
Update UnderwaterBase prefabs.
...
Added the waterfall room and the decaying sphere room. Re-tweaked the pieces' weights.
2014-06-01 22:02:58 +02:00
Tiger Wang
a84f107400
Suggestions two
2014-06-01 20:00:11 +01:00
Mattes D
61edb83ce5
Merge pull request #844 from mc-server/ProjectileHitBlock
...
OnProjectileHitBlock tweak.
2014-06-01 20:10:03 +02:00
worktycho
750333855c
abort does not take a parameter.
2014-06-01 17:23:02 +01:00
worktycho
476fdc9952
Use abort in SIGSEGV and SIGABRT handlers
...
This should cause Mcserver to generate core dumps when it crashes.
2014-06-01 17:05:51 +01:00
STRWarrior
319169eafb
Made a_BlockHitPos a reference
2014-06-01 14:06:47 +02:00
madmaxoft
046c149797
Updated UnderwaterBase prefabs.
2014-06-01 10:07:57 +02:00
madmaxoft
75fe89b8ae
Updated AlchemistVillage prefabs.
2014-06-01 09:27:54 +02:00
Howaner
12f3c0fcdf
Players can't set items in the result slot, when they shift a item.
2014-06-01 00:50:35 +02:00
Howaner
a18b6c2311
Add HandleSmeltItem() call for achievements.
2014-06-01 00:43:09 +02:00
Howaner
5368e66486
Missing return;
2014-06-01 00:29:17 +02:00
madmaxoft
7672ca7eef
Added an initial version of the underwater base generator.
2014-05-31 22:06:14 +02:00
Mattes D
6de45037c7
Merge pull request #1018 from mc-server/VillageGen
...
Village gen
2014-05-31 19:11:13 +02:00
JoannisO
b436359237
- Changed the name of the ProjectileLookVector method.
...
Note: I still think the new name is unclear. Any other suggestions are
welcome.
2014-05-31 16:08:15 +02:00
STRWarrior
d1b23060ad
Used recommendations
2014-05-31 14:14:55 +02:00
Howaner
683da71c0f
Moved the IsDoor check before the meta get.
2014-05-31 11:48:54 +02:00
Howaner
0b7ed0f493
Add doxy-comment
2014-05-31 11:47:03 +02:00
madmaxoft
600c93bdc1
Updated PlainsVillage prefabs.
2014-05-31 10:33:29 +02:00
madmaxoft
f4e9c88dcd
Fixed a memory leak in VillagGen.
2014-05-31 10:33:12 +02:00
Mattes D
0b758946ac
Merge pull request #951 from worktycho/chunksparsing/structs
...
Chunksparsing with segments
2014-05-31 10:12:54 +02:00
Howaner
2030800ad7
Set DraggingItem to Slot directly.
2014-05-31 00:27:24 +02:00
Howaner
d422aa4081
Fix DBL bug.
2014-05-31 00:25:20 +02:00
Howaner
01fc93857c
Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"
2014-05-31 00:22:24 +02:00
Howaner
843288493e
Fix the furnace result slot.
2014-05-30 23:41:17 +02:00
madmaxoft
b9d306a801
Fixed bindings for cCompositeChat:SetMessageType().
2014-05-30 22:42:00 +02:00
madmaxoft
8bf7aed67c
Updated PlainsVillage and AlchemistVillage.
2014-05-30 22:40:19 +02:00
Howaner
92d9ab0f6d
Wrong arrow commit.
2014-05-30 22:25:57 +02:00
Howaner
d8e16f8c1f
Better SetOpen() and IsOpen() function from the doors.
2014-05-30 22:22:42 +02:00
Tycho
f26ddac619
removed NULL assignment to const value
2014-05-30 14:50:30 +01:00
Tycho
d854d3af1c
removed unneded addressof
2014-05-30 14:43:33 +01:00
madmaxoft
e136f6e0f5
Fixed cChunkData nibble copying.
2014-05-30 11:35:29 +02:00
madmaxoft
730e36844e
Test failures break into MSVC debugger.
2014-05-30 11:01:13 +02:00
madmaxoft
0b60caac4a
Test failures are reported verbosely and into the debug console on Win.
2014-05-30 10:56:12 +02:00
madmaxoft
5368c5dd79
Fixed sign comparison.
2014-05-30 09:49:57 +02:00
madmaxoft
0e2138736c
Fixed wrong copy sizes in cChunkData.
2014-05-30 09:17:17 +02:00
madmaxoft
8c4dd5dcfd
Attempt at fixing an unresolved symbol in gcc / clang.
2014-05-29 21:41:44 +02:00
worktycho
be10f07db0
Fix bug when a_Idx is not a multiple of SectionBLockCount
2014-05-29 19:44:36 +01:00
worktycho
901e3ec494
Derp
2014-05-29 19:35:47 +01:00
worktycho
b50181e361
fix underflow
...
Wish c++ could specify saturating unsigned underflow.
2014-05-29 19:29:06 +01:00
madmaxoft
59068b77b7
Fixed wrong block sizes for copying / setting.
2014-05-29 20:21:39 +02:00
JoannisO
ab633c8bd6
- Prefixed all args with "a_"
...
- Added braces around the cases.
2014-05-29 20:19:36 +02:00
worktycho
0cfee5d141
Fixed Wrong types in nibble sizeofs
2014-05-29 19:10:35 +01:00
Howaner
b4ba220934
Add SetOpen() and IsOpen() to BlockDoor.h and fix door redstone bug.
2014-05-29 19:21:56 +02:00
worktycho
80fe19c0e2
Fixed overflow bug
2014-05-29 17:41:07 +01:00
madmaxoft
f7777e8c75
Added comments, reformatted code.
2014-05-29 18:25:08 +02:00
Tiger Wang
aa4477822a
Suggestions
2014-05-29 16:03:41 +01:00
Tiger Wang
3549d0d5e6
More comments!
2014-05-29 15:59:39 +01:00
Tiger Wang
bacc873a17
Revert "Fixed a food saturation issue"
...
This reverts commit 67308e4337
.
2014-05-29 12:12:10 +01:00
worktycho
d9c667d28f
Add comment
2014-05-29 12:04:37 +01:00
Tiger Wang
365c6f50bd
Changed block send queue to use vectors
...
As suggested by @worktycho.
2014-05-29 11:57:06 +01:00
Tiger Wang
ae4371a733
Fixed piston power checking
2014-05-29 11:56:22 +01:00
madmaxoft
e5187aa645
Fixed a memory leak in cPOCPieceGenerator
2014-05-29 09:19:20 +02:00
madmaxoft
b56033d541
Merge remote-tracking branch 'origin/master' into VillageGen
2014-05-29 09:14:47 +02:00
madmaxoft
999662503a
Fixed forgotten changes.
2014-05-29 09:09:11 +02:00
madmaxoft
10273f64a2
Fixed a crash in message formatter.
...
The code would fail if a message is sent to a player not yet added to a world.
2014-05-28 22:41:23 +02:00
madmaxoft
81f756cbda
cChunkData: Normalized code style.
2014-05-28 22:40:19 +02:00
Howaner
142fa83124
Code improvements
2014-05-28 19:32:20 +02:00
Howaner
9f645b2c75
Fix hay place sound.
2014-05-28 17:05:13 +02:00
Howaner
421588d25d
Fix fire break.
2014-05-28 16:59:51 +02:00
Howaner
e7a7c45c36
Add throw sound and fix arrow server crash.
2014-05-28 16:39:59 +02:00
madmaxoft
7ec44951a0
Fixed cChunkData formatting.
2014-05-28 16:34:25 +02:00
madmaxoft
d29b242674
Fixed a memory leak in cPrefabPiecePool.
...
The pool pieces weren't freed upon pool destruction.
2014-05-28 16:33:10 +02:00
Howaner
d4f90259b8
Fix Y-Position from arrow entity.
2014-05-28 16:12:10 +02:00
Howaner
61b6fdde75
Fix right click bugs.
2014-05-28 16:07:51 +02:00
Howaner
d8072da61f
Fix skull bugs.
2014-05-28 15:54:43 +02:00
JoannisO
427bddc189
- Removed breaks. I thought it wouldn't compile without them but the
...
issue was appearantly solved with an earlier commit.
2014-05-28 15:16:45 +02:00
JoannisO
4bc02781af
- Fixed an issue where dispensers would only shoot arrows (appearantly
...
some commits didn't come through)
- Cleaned up the code according to suggestions.
2014-05-28 14:34:33 +02:00
Joannis
e5fd782524
- Implemented vertical dispensing for projectiles.
...
- Fixed some terrible commit issues on my side.
2014-05-28 09:10:09 +02:00
madmaxoft
dff71823d4
Merge branch 'master' into VillageGen
2014-05-27 22:09:30 +02:00
madmaxoft
6b41d1a422
Added AlchemistVillage prefabs (Thanks, KingsCraftAu).
2014-05-27 22:08:20 +02:00
madmaxoft
71256c98ed
Fixed testing weights in PlainsVillages.
2014-05-27 22:06:49 +02:00
madmaxoft
ff99373237
cPieceGenerator chooses starting pieces based on weights.
...
Fixes #1033 .
2014-05-27 22:05:50 +02:00
madmaxoft
6c25c356c7
Biome generators: biome lists can contain spaces.
2014-05-27 21:18:15 +02:00
Tycho
19df18c461
Fixed test globals to work with precompiled headers
2014-05-27 12:46:22 +01:00
Joannis
1128dc783f
- Fixed the ampersands and asterisks to fit the format.
...
- Fixed the method "SpawnProjectileFromDispenser" to use CamelCasing.
2014-05-27 11:08:06 +02:00
archshift
c204735f38
ClientHandle.cpp: Process look before pos
2014-05-27 00:28:46 -07:00
archshift
0a3570bc9d
ClientHandle.cpp: remove redundant code
...
HandlePlayerMoveLook() calls HandlePlayerPos() and HandlePlayerLook() to reduce code redundancy.
2014-05-26 14:15:32 -07:00
madmaxoft
6449b5d11b
Revert "Add more move checks"
...
This reverts commit 989312c4e7
.
2014-05-26 16:38:39 +02:00
JoannisO
74801f5647
- Added support for more types of projectiles in the Dispenser
...
- Improved the method of spawning projectiles in the world
- Added another method for spawning the projectiles
2014-05-26 14:47:04 +02:00
Mattes D
6ad411a8b8
Merge pull request #1003 from Howaner/GlobalFixes
...
Add more move checks
2014-05-26 10:14:05 +02:00
madmaxoft
24137e282b
Fixed prefab test initialization.
2014-05-26 10:05:51 +02:00
JoannisO
c9c2a4f479
Added Arrow- and FireCharge-Dispensing to DispenserEntity.
2014-05-26 08:44:16 +02:00
madmaxoft
1a742a2b52
Added support for Miners' Village.
...
The village contains both prefabs that snap to ground and prefabs that connect strictly via connectors.
Fixes #1027 .
2014-05-25 23:50:16 +02:00
Alexander Harkness
a352ec3895
SEMICOLONS!
2014-05-25 19:46:16 +01:00
worktycho
6ce73ada6f
Update GroupManager.h
2014-05-25 19:17:01 +01:00
Alexander Harkness
50e29aba77
A fix that is better than #950 .
2014-05-25 18:32:42 +01:00
Tiger Wang
67308e4337
Fixed a food saturation issue
2014-05-25 13:46:50 +01:00
Tiger Wang
ee929793f0
Hopefully fixed piston duplication issues
...
* Fixes #879
* Fixes #714
2014-05-25 13:46:34 +01:00
Tiger Wang
f55f5ec47f
Merge branch 'master' into achievementtranslate
...
Conflicts:
src/Entities/Player.cpp
2014-05-24 23:21:39 +01:00