2201 Commits

Author SHA1 Message Date
Sam
27ae54d7d6 Lua call for loading .spr, .dat, .otb 2014-01-18 18:38:13 +01:00
Sam
aec577a4b4 Merge pull request #442 from d33tah/master
Get rid of trailing whitespace.
2014-01-18 08:11:03 -08:00
Ahmed Samy
6f467d5a1b Sort town/house names 2014-01-18 17:57:42 +02:00
Jacek Wielemborek
e6c9e78935 Get rid of trailing whitespace.
Commit generated by command:

find -type f ! -path '*.git*' ! -path '*.png' ! -path '*.ico' ! -path \
    '*.ogg' | xargs -I '{}' sed -i '{}' -e 's/\t*$//g' -e 's/ *$//g'
2014-01-18 15:09:26 +01:00
Sam
3750a85c5f Fix for version 8.40 2014-01-17 22:41:58 +01:00
Sam
03de13d618 Duplicate lua function removed 2014-01-16 22:11:42 +01:00
Eduardo Bart
1588bc4cae Merge pull request #436 from diath/patch-tabs
Make tab navigation more intuitive
2014-01-15 05:48:07 -08:00
Kamil Chojnowski
b718ae0423 Update tabs navigation to take offscreen tabs into account 2014-01-15 04:56:42 +01:00
Eduardo Bart
a8f540cf29 Merge pull request #437 from diath/patch-hotkeys
Update hotkeys behavior
2014-01-14 18:16:54 -08:00
Kamil Chojnowski
e6a1fabdd3 Update hotkeys behavior 2014-01-15 02:54:50 +01:00
Kamil Chojnowski
291960d159 Make tab navigation more intuitive 2014-01-15 02:32:02 +01:00
Sam
20b68c6a42 Vip functionality, closes #83 2014-01-14 23:15:01 +01:00
Ahmed Samy
e4ba805e00 deleteSpawn() 2014-01-14 11:04:48 +02:00
Ahmed Samy
93be0f975f getCreatures / getSpawns 2014-01-14 01:47:43 +02:00
Sam
cbfeef39bc Effects now use x and y pattern, fixes #433 2014-01-13 16:03:42 +01:00
Sam
d7dfa2220e GMAction fix 2014-01-08 17:25:05 +01:00
Eduardo Bart
59c3e4467a Update v0.6.5 download link in README v0.6.5 2014-01-06 19:16:50 -02:00
Eduardo Bart
117833addc Update to version 0.6.5 2014-01-06 19:02:45 -02:00
Ahmed Samy
edf17a44ca Code cleanup 2014-01-06 14:35:57 +02:00
Sam
6db2458c1d Adding 10.31 to version list 2014-01-01 15:47:51 +01:00
Ahmed Samy
2556bfcbf2 Tab -> space 2013-12-30 18:13:49 +02:00
Ahmed Samy
9bdce800d8 Bind Container item code to lua 2013-12-30 18:10:45 +02:00
Ahmed Samy
9adab5f9bf Item serialization: Write description & text 2013-12-27 12:59:50 +02:00
Ahmed Samy
a6f998d406 Fix typo & bind ItemType::isWritable 2013-12-27 11:32:19 +02:00
Ahmed Samy
ab21558c47 Do not test for TILESTATE_NONE
This flag is ALWAYS set, cause it's always 0 i put there by mistake.
It causes an issue by simplying drawing everything dark, cause of
the opacity...
2013-12-27 05:10:00 +02:00
Sam
17c4d59b15 Enabling versions 7.8 to 8.0 2013-12-26 23:20:34 +01:00
Sam
d53f4dfa1e Merge pull request #419 from dominique120/master
Spanish translation improvement.
2013-12-26 13:46:08 -08:00
Sam
da959aca28 Support for protocol 7.7/7.72 / Tiny fix 2013-12-26 21:31:55 +01:00
Sam
91c182d93d Tiny typo fix :) 2013-12-26 19:39:40 +01:00
dominique120@live.com
6ecd49abe1 Fix recommended by @Bahamuntxd 2013-12-26 12:17:57 -05: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
Sam
27db78567b Fix writables in 7.6, fixes #416 2013-12-25 15:11:12 +01:00
Sam
83dd92cfec Merge pull request #417 from ronpetit/master
fixed outfit for 7.6 fix #415
2013-12-24 16:01:10 -08:00
dominique120@live.com
5605061435 fixed a little typo. 2013-12-24 17:47:08 -05:00
dominique120@live.com
241b178ebc Improved the Spanish translation by making some statements sound more formal and correcting a few other ones that where incorrect or that missed a few words. 2013-12-24 17:39:51 -05:00
Ron
d0288e23d8 Update outfit.lua
Fixed outfits for 7.6
2013-12-24 14:07:52 -04:30
Sam
9d8cf33acc Fix 7.60 login protocol 2013-12-23 23:45:49 +01:00
Sam
6a4868f2b5 Merge pull request #412 from LordHepipud/patch-1
Fix 7.70 RSA / XTEA encryption
2013-12-23 14:45:17 -08:00
LordHepipud
aa84ee4362 Fix 7.70 RSA / XTEA encryption
RSA / XTEA encryption was implemented with Client 7.70

~~~~Lord Hepipud~~~~
2013-12-23 23:31:59 +01:00
Henrique Santiago
1e17919a26 Use of createTable on containers 2013-12-22 17:36:43 -02:00
Ahmed Samy
df3546b073 lua: now we have a function to static allocate an array
lua_newtable() definition:
	#define lua_newtable(L) 	lua_createtable(L, 0, 0)

This simply allocates space for 0 fields, meaning, if we push any
values into this array, it will re-allocate the array, which is bad.

This function statically allocates an array, so it's ready to have
X fields into it.

Performance tests:

lua_newtable
1428161
1426992
1413513

lua_createtable
2004544
1974117
1957533

These tests were done on an AMD 8350fx CPU, single thread used.

narr: This is for fields that just have an index, e.g. arr[0] etc.
nrec: For fields which needs like arr.a, arr.b etc.

This is how many times each of the functions can run per second, as
you can see about 1.7x the calls to lua_newtable.

All credits goes to @dalkon, he was too lazy to do it by himself, and
asked me to do it for him.
2013-12-21 16:13:24 +02:00
Ahmed Samy
24e26e190b Also unbind g_minimap.updateTile 2013-12-18 04:40:53 +02:00
Ahmed Samy
ad7cda534d Fix minimap tile update for item removal 2013-12-18 04:40:52 +02:00
Sam
863bece70b VC12 fixes by @dalkon 2013-12-15 19:09:03 +01:00
Ahmed Samy
22f97aa00b More binds to lua 2013-12-15 04:59:45 +02:00
Ahmed Samy
e32607b05c Tiny fixes 2013-12-15 04:33:43 +02:00
Ahmed Samy
1790eee1c6 Add selection to tile 2013-12-14 23:06:52 +02:00
Ahmed Samy
ec2518525a Add more tile flags to be checked for 2013-12-14 19:44:54 +02:00
Ahmed Samy
eb4fb4ff41 Animations are now optional
The default behaviour is still there though.
2013-12-14 18:48:18 +02:00
Ahmed Samy
4f997a3826 Only request tile cache to be updated once for both x & y 2013-12-12 16:24:50 +02:00