Commit Graph

3949 Commits (76457d367338b603808b7821036cf9edc6f95afb)

Author SHA1 Message Date
madmaxoft 76457d3673 Fixed timing on *nix. 2014-01-28 16:28:55 +01:00
madmaxoft 81837edb22 Fixed a slight bug in RSA encryption code. 2014-01-28 09:50:48 +01:00
Mattes D 5f9228bac8 Merge pull request #595 from mc-server/NonBlockingSockets
Non blocking sockets
2014-01-27 21:43:59 -08:00
madmaxoft a359275064 Squashed common code. 2014-01-27 21:34:54 +01:00
madmaxoft 4169af1ce1 Fixed Linux compilation. 2014-01-27 21:33:06 +01:00
madmaxoft cc1284a753 Rewritten networking to use non-blocking sockets.
This fixes #592.
2014-01-27 21:27:13 +01:00
Tiger Wang f5589a1ec7 Updated polarssl 2014-01-27 19:34:18 +00:00
Tiger Wang fc9e527830 SIGABRT exits with failure. 2014-01-27 18:57:26 +00:00
madmaxoft 30c431b479 Fixed client packet parsing.
When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541.
Also modified comm logging, now each direction can be turned on separately.
2014-01-26 17:56:12 +01:00
madmaxoft ab4672be40 cByteBuffer has more self-tests. 2014-01-26 17:56:12 +01:00
madmaxoft 61848ff5a0 Item-loading now checks for weird bytes. 2014-01-26 17:56:11 +01:00
madmaxoft a3ac1be7b7 Fixed Byte-order reading.
The functions would fail on bytes that were above 127.
2014-01-26 17:56:11 +01:00
Tiger Wang ea9de4bbb7 Added SIGABRT to catchers list 2014-01-26 16:15:05 +00:00
Mattes D 09ee8a1bb6 Merge pull request #589 from mc-server/minecartimprovements
Minecart improvements
2014-01-26 05:13:54 -08:00
Mattes D 1f4e12c50c Merge pull request #590 from mc-server/Wolf_Fix
Wolf: Small fix since the new AI and a new small feature.
2014-01-26 04:40:16 -08:00
STRWarrior 4c780e7b44 Fixed bug where wolfs would teleport while they were sitting. 2014-01-26 13:27:35 +01:00
STRWarrior a533386144 Small fix since the new AI and a new small feature.
You get particles when trying to tame wolfs.
They don't walk anymore when they are sitting.
2014-01-26 13:07:21 +01:00
Tiger Wang 70113b5730 Fixed segmentation fault on villager damage
It occurred when attack was environmental.
2014-01-26 00:14:00 +00:00
Tiger Wang 52f7467fe1 Reduced unnecessary echoes (thanks xoft) 2014-01-25 23:48:48 +00:00
Mattes D f78a62a5e3 Merge pull request #575 from worktycho/GeneratingBenchmark
More Interfaces to decouple Generator from the rest of the code
2014-01-25 13:55:33 -08:00
Mattes D 5749b40422 Merge pull request #588 from mc-server/Sheep_Eating
Implemented sheeps eating grass.
2014-01-25 13:36:47 -08:00
Mattes D cdcad2237a Merge pull request #587 from mc-server/mobimprovements
Mob improvements & rudimentary artificial intelligence
2014-01-25 13:36:32 -08:00
Tiger Wang cdd6478cea Did what xoft recommended 2014-01-25 21:29:27 +00:00
Mattes D 437a9c8d1f Merge pull request #583 from mc-server/ChangeToPolarSSL
Change to polar ssl
2014-01-25 13:05:16 -08:00
Tiger Wang 398e159f5f Rail speed tweak 2014-01-25 20:33:23 +00:00
STRWarrior 7b8dc01db3 Implemented sheeps eating grass. 2014-01-25 21:19:52 +01:00
Tiger Wang 1d0e1bdcb1 Improved AllToLua UI experience 2014-01-25 19:36:20 +00:00
Tiger Wang 6fa3a0cf70 Two minor changes 2014-01-25 19:05:44 +00:00
Tiger Wang 7468ba0f10 Implemented fall damage for mobs
+ Implemented mobile fall damage
* Formatting fixes
+ Defined new Position->Integer macros
2014-01-25 19:02:13 +00:00
Tiger Wang 60b7f5f23d Attack() is no longer always called 2014-01-25 19:00:50 +00:00
Mattes D c8be9b5b1a Merge pull request #581 from worktycho/strerror
Switched cEvent to use strerror_r for error messages
2014-01-25 10:43:00 -08:00
madmaxoft 8f1890e877 ProtoProxy: Modified to use PolarSSL. 2014-01-25 19:19:37 +01:00
madmaxoft ca0e51d89c Added RSA encryption to crypto wrappers. 2014-01-25 19:19:17 +01:00
Tycho 2a18feb015 Stupid Mistake fixed 2014-01-25 10:13:54 -08:00
Tiger Wang d9707a9291 Implemented pickup combining
* Fixes FS393
* Part of  #131
2014-01-25 15:19:56 +00:00
Tiger Wang 314fc3cdac Mob bugfixes
* Mobs no longer require constant line-of-sight to a player to remain
aggravated
* Fixed an ASSERT
* Fixed mobs jumping
* Fixed Idle state not properly using AI
+ Added FILE_IO_PREFIX to favicon loading
+ Implemented #563
2014-01-25 14:42:26 +00:00
madmaxoft a2dfb28537 Merged branch 'master' into ChangeToPolarSSL. 2014-01-25 15:37:00 +01:00
madmaxoft ff066453b8 Comm logging is available in both Debug and Release modes. 2014-01-25 15:28:16 +01:00
madmaxoft 5aa3fc4c56 Added cFile::Flush().
This is useful when using cFile as a log file and we know the server may crash after a specific write, so we flush the file before continuing.
2014-01-25 15:27:34 +01:00
Tycho 2806b48afa Fixed exports 2014-01-25 06:06:30 -08:00
madmaxoft 96b4af1596 Protocol17: Comm logging shows the data left over from previous parse. 2014-01-25 15:06:30 +01:00
madmaxoft 9d1ebaaf0d Ignoring the Comm Logs. 2014-01-25 15:06:30 +01:00
Tycho 977e277094 Switched cEvent to GetOSErrorString 2014-01-25 06:02:20 -08:00
Alexander Harkness 6b51c62d78 Merge pull request #586 from worktycho/BindingsMove
Implented xofts suggestions in #577
2014-01-25 05:53:01 -08:00
Tycho 59b8205f02 Extracted cSocket::GetErrorString into GetOSErrorString 2014-01-25 05:51:03 -08:00
Tycho cb7c5a6181 Simplified .gitignore 2014-01-25 05:37:19 -08:00
Tycho 45bc1ff033 Added dependecy output to Bindings/BindingsDependencies.txt 2014-01-25 05:35:04 -08:00
Tycho b2fd91ee6b Reformatted Bindings Dependecies 2014-01-25 05:25:43 -08:00
Tiger Wang fd7fc7e59e All mobs now drown (fixes #54)
* Implemented mob drowning
* Iron Golems and squids are excluded
2014-01-24 23:58:51 +00:00
Tiger Wang 1112f5adc6 Fixed a generator bug 2014-01-24 23:56:19 +00:00