Commit Graph

241 Commits

Author SHA1 Message Date
Henrique Santiago b7b8fdfd0c Fix BinaryTree skip, small otb changes 2014-02-13 00:42:06 -02:00
Ahmed Samy 6745bff132 Introduce g_resources.getDirectoryFiles
This can recursively find files in a directory that's not in physfs search
path, this is needed for mapeditor needs, esp the file browser.

We do not want to limit users to the application run directory
so we have to use this.

This function uses boost filesystem.
Prototype:
	g_resources.getDirectoryFiles(directory STRING, filenameOnly BOOL,
	recursive BOOL)

filenameOnly is there if we want to just get the filenames in the
directory.
recursive if we want to loop directories in the directory.
2013-12-25 21:32:49 +02:00
conde2 4dcb30110f Use of clamp 2013-12-01 00:48:36 -02:00
Ahmed Samy 25d3019d1a force use of template version of std::min/max 2013-11-14 00:02:47 +02:00
Ahmed Samy 1711d8bdaf Revert "replace all std::min/std::max with just min/max"
This reverts commit 28d967ccce.
2013-11-13 23:53:54 +02:00
Ahmed Samy 28d967ccce replace all std::min/std::max with just min/max
This errors out in MSVC since the inclusion of winsock2.h, CL uses the
macro not the template version.
2013-11-13 23:48:10 +02:00
Eduardo Bart d32f71c2b9 Partial support for protocol 1020 and minimize lag
I am able to login in global Tibia however there are game protocol errors
* there is a new opcode 167, which I dont know what it is
* there are changes in opcode 147 which handles text messages that I don't know too

Connection writing was optimized, playing "lag" should improve by 10ms,
and improve much more in systems with low fps
2013-11-10 20:10:04 -02:00
Eduardo Bart 0891e2b30a Add C++ traceback to errors 2013-03-12 01:36:36 -03:00
Eduardo Bart 64fc4570c9 Try to fix compilation for gcc 4.6 [3] 2013-03-06 15:47:38 -03:00
Eduardo Bart 392acc0b43 Try to fix compilation for gcc 4.6 [2] 2013-03-06 15:40:47 -03:00
Eduardo Bart 44bf4dcb6e Fix ubuntu compile errors 2013-03-05 02:54:08 -03:00
Eduardo Bart 1dd558d57e Revert "Use boost::thread instead of std::thread"
This reverts commit 71b5c5f2e4.
2013-03-05 01:47:23 -03:00
Eduardo Bart 71b5c5f2e4 Use boost::thread instead of std::thread 2013-03-04 23:06:00 -03:00
Eduardo Bart 0be7bd5360 Implement async dispatcher #221 2013-03-04 18:56:22 -03:00
BeniS 3980f859b7 Forgot to remove header includes 2013-03-03 19:17:48 +13:00
Eduardo Bart c392bcca90 Fix win32 alt bug 2013-03-03 00:00:13 -03:00
BeniS 3ca85cbe87 Removed Position dependencies inside the framework 2013-03-02 18:33:14 +13:00
Eduardo Bart 8314b84f69 Add live_textures_reload command 2013-03-01 05:46:55 -03:00
Eduardo Bart 06e2b6eca2 Platform fixes and rework ping 2013-02-24 22:16:45 -03:00
Eduardo Bart 04c4943fa8 Remove boost::filesystem dependency 2013-02-22 19:29:58 -03:00
Eduardo Bart 09c937998f Dont use boost locale anymore 2013-02-22 18:49:36 -03:00
Henrique Santiago dfb0150a7d Fix signalCall, healthinfo tooltips 2013-02-10 01:17:20 -02:00
Ricardo Ianelli cbeab6f9b0 Moving start messages to lua
Moved start log messages to lua, to make easier to enable/disable those
messages.
2013-02-10 02:28:47 -02:00
Eduardo Bart cf77df05ca Fix possible leaks in stdext::format 2013-02-05 20:00:28 -02:00
Eduardo Bart 86d06057ca Fixes to compile with libc++ 2013-02-05 18:30:16 -02:00
Eduardo Bart 8d6ccb8d83 Fixes to compile with clang 2013-01-29 14:35:20 -02:00
Eduardo Bart 773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart 835adfb4ce Fix a compile error 2013-01-26 15:17:32 -02:00
Eduardo Bart 6594b2d090 Fix #7 2013-01-26 14:54:19 -02:00
Eduardo Bart 07959ddc04 Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords,
  now it's really harder to decrypt the password from the config file
* Other minor changes
2013-01-26 14:38:48 -02:00
Eduardo Bart 3a47c4f2e1 Remake cursors, closes #219 and #237 2013-01-25 11:19:40 -02:00
Eduardo Bart 992acd8873 Fix translations, there were all broken 2013-01-23 15:35:43 -02:00
Eduardo Bart 1674575dc0 Minor fix 2013-01-23 13:47:26 -02:00
Eduardo Bart 3f882d9e6c Disable path find debugging 2013-01-23 13:15:02 -02:00
Eduardo Bart 9907e9e5c7 Fix particles and some fun in the background LOL 2013-01-19 18:24:59 -02:00
BeniS b68df8336a Minor fixes to some previous commits.
* Fixed a bug with storing the protocol version.
* Fixed an issue with text windows cancelling.
* Fixed a typo in the source.
2013-01-18 03:23:01 +13:00
Eduardo Bart d2712fa218 Try to fix travis build 2013-01-16 12:42:06 -02:00
Eduardo Bart 0120b7554c Restore support for animated png files
* Rework resource manager
* Add missing files
* Improve some graphics classes
2013-01-08 19:31:41 -02:00
Eduardo Bart fdcad184f9 Fix platform issues regarding charsets
* IMPORTANT: A new dependency is required, boost_locale, comes with boost 1.50.0 or later
* Copying and pasting special characters should now work
* Running otclient from filepaths with special characters should work now too
2013-01-08 18:45:27 -02:00
Eduardo Bart 5344a179a4 Many UI improvements and minor fixes 2013-01-08 18:01:47 -02:00
Eduardo Bart 9d5abb0243 Fix minor issues in item drawing
* Add some utilities functions
2013-01-08 17:40:25 -02:00
Eduardo Bart 122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
BeniS 3fa5993177 Changed scrollbar style, and some other changes:
* Changed the scrollbar style to look a bit nicer.
* Fixed a typo in the EventDispatcher class.
* Added PlayerStates to player.lua.
* Minor tweak to console tab spacing.
* Add unbinding key 'Ctrl+Shift+D' in the options.
2013-01-05 20:57:31 +13:00
Eduardo Bart 8bb115d6d4 Fix issue #134 2012-10-24 18:03:15 -02:00
otfallen 9650179ae8 More Mac OS X progress.
Tested-by: Christopher Eklund <eklundchristopher@gmail.com>
Signed-off-by: otfallen <f.fallen45@gmail.com>
Signed-off-by: Christopher Eklund <eklundchristopher@gmail.com>
2012-09-29 23:08:10 +00:00
otfallen 3b7ad41740 Spare a call yeye 2012-09-29 16:48:01 +00:00
otfallen e1900bdf9a binarytree: type fix 2012-09-28 07:24:49 +00:00
Henrique Santiago a306027cec Fixed skins path 2012-08-23 04:17:38 -03:00
Eduardo Bart ddd3f84ad7 Many fixes in win32 platform 2012-08-20 18:53:38 -03:00
niczkx 0af783b5cf Fix OTBM saving 2012-08-19 22:30:49 +00:00