hikerstk
498a0a104e
1) Moved news message handling into a separate object.
...
2) Added prioritised request list to network manager.
3) Fixed ticket 217 (crash at shutdown), which happens if
the background thread downloading the icons is still
active when STK is quit (and then accessing managers
that have been deleted).
4) Handled partial downloads correctly: files are now
downloaded with ".part" appended to the filename,
and only upon a successful download renamed to
the original name.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-12 23:51:00 +00:00
auria
0f57b0b46a
Rename macros to avoid name clases
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 23:50:36 +00:00
auria
a4c846bbe3
Experimental test, Joerg I hope you won't hate me ;) Switch some GUI code to for_each instead of for, i think it's easier to read
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8511 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 23:46:03 +00:00
auria
e0361f53f1
Not really necessary cleanup :) : port kart properties to use Ptrvector, which makes code a bit smaller and (IMHO) easier to read
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8510 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 23:14:00 +00:00
hikerstk
a638dd5867
Fixed ticket #168 (could not switch between traditional and simplified
...
Chinese). This only happens on case insensitive file systems (where
the name of the .po files are returned in lowercase, meaning the
country part is lower case as well and therefore not recognised).
This patch corresponds to 8337 and 8341 on 0.7.1 branch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-14 02:07:27 +00:00
auria
46eb48864a
Fix translation hint
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-04 21:05:48 +00:00
hikerstk
29b19703da
Disabled usage of SSE (vectorization) in release mode, since
...
it causes the executable to crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 04:50:43 +00:00
hikerstk
78ee0dd2bc
Fixed list of languages (which didn't work after removing
...
the .mo files).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 10:44:04 +00:00
hikerstk
5dad1ed342
Fixed compilation problem on VS.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 01:15:43 +00:00
auria
b548b1bc93
Rename VERSIOn to STKVERSION
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:41:25 +00:00
auria
1c270cde1f
Add VERSION to constants.hpp, please remove that define from Visual Studio file and autotools
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:31:29 +00:00
auria
66cb1f729b
Allow translating wide stirngs too
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 16:28:50 +00:00
auria
952a8ed312
Fix bug in insertion sort algorithm
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 22:03:02 +00:00
hikerstk
d953a188c7
Fixed compilation on linux.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8031 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 04:39:28 +00:00
hikerstk
954b420446
Started to add support for downloading news from the addon server
...
at a specified interval only (e.g. only download every 2nd day).
Not fully working yet, might not work on linux/mac atm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 03:57:49 +00:00
hikerstk
72c3bf2cc8
Removed commented out code.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-22 21:42:17 +00:00
hikerstk
35a964200f
Fixed bug in sorting function (sorting could be incorrect when
...
start was != 0). This might also fix ticket 96.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 06:12:40 +00:00
auria
b8d5763aca
Add tooltip to explain what each GFX level does (as suggested in Trac) + remove NLS_ENABLED checks, with tinygettext translation is always available.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7988 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-18 16:50:22 +00:00
hikerstk
83e7e47c61
Fixed warning ... again, this time I'll actually do it in trunk, not in
...
an old branch :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7983 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 23:01:08 +00:00
auria
e5829c26f9
Fixed RTL with tinygettext
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:20:08 +00:00
auria
6b30d89282
More work on tinygettext
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7943 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:18:04 +00:00
auria
d3604d050c
Make tinygettext work
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:05:25 +00:00
hikerstk
85d125fda7
Enabled inlining of some Vec3 functions (this was originally
...
avoided to decrease recompile time).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 22:30:25 +00:00
hikerstk
4d8b8e5dea
Renamed ptr_vector to PtrVector so that is follows
...
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
hikerstk
4ab6331ff4
Update to bullet-2.77.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
hikerstk
8a24515cff
Fixed crash in fribidi (if fribid was not used, a pointer
...
to a temporary string was returned).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:46:31 +00:00
auria
4b3c1fa16d
Remove old vararg style, the new one works just fine
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:28:23 +00:00
hikerstk
cb1342e449
Fixed compilation errors, but code still crashes on VS ... work in progres!!!!
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7511 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:18:26 +00:00
auria
009960fc8a
Clean up call to fribidi, add capabilities to insert values to the _ macro
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
hikerstk
b242ee7abc
Removed hack to reverse 'i%' output from bidi, since a better
...
solution appears to exist.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:10:26 +00:00
mbjornstk
015443f582
Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
hikerstk
4f9fcf0a9b
Fixed bug for RTL languages.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7486 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-20 02:41:04 +00:00
hikerstk
ef35dfc72e
Fixed special formatting sequences (e.g. %i, $1$s)for RTL languages (bug 3159482).
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-20 01:55:30 +00:00
auria
24d0d549ba
Improve error handling in XML classes (namely, atoi must die) since I was bitten several times now by insufficient error handling. Also set up base architecture to support the new gfx mode 'my kart is animated but not Ai karts', though it doesn't work atm for the simple reason that at the time the model node is created we do not yet know if the kart is player or AI...
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 00:06:59 +00:00
auria
5076006d34
Fixed compilation on some systems
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7429 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-15 21:28:25 +00:00
auria
5f4e34328b
Retrieve language list by scanning the /data/po dir
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-15 21:20:10 +00:00
auria
bba25d6ee2
First drafts of a language selection screen
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-15 20:49:32 +00:00
hikerstk
c164bfefc0
Added lock and unlock method, plus a method to get
...
access to the actual data. This allows custom locking
(e.g. a synchronised vector might want a [] and erase
operation to be locked, to be sure to copy a element
before erasing it).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7390 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-13 06:02:12 +00:00
hikerstk
2a28fefb31
Support for fribidi version 0.10 added.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 23:11:02 +00:00
hikerstk
6a3269f7d1
Fixed RTL language support on windows 32 (since wchar_t is 2 bytes, but
...
fribid returns 4 bytes the type cast was incorrect). Also fixed FIXME.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 03:40:27 +00:00
auria
83e4bd054e
Fix RTL languages
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-09 23:59:12 +00:00
hikerstk
3c729b4b0f
1) Added proper handling and detection of installed addons
...
2) Moved addon related data files into a separate 'addons' directory.
3) Directory names of addons are now lower case.
(Still addons are not stable enough to be used!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 21:49:17 +00:00
auria
6ad54434e0
Correct a few FIXMEs + minor style improvements
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7227 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:23:52 +00:00
auria
e7734931f2
Added support for %0 type syntax in StringUtils::insertValue, since tools that verify translations integrity don't all like the older %0 syntax I used
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7199 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-31 01:29:04 +00:00
hikerstk
ce986d623d
Many style changes and code improvements to addons management.
...
The addons icon is now greyed out in case of an error (and till
the list of addons is downloaded, though usually that is done by
the time the main gui is shown). Moved synchronisations/threading
from addons_manager to network_http. Added 'Synchron' template
to hide usage of mutex to provide synchronised accesses to a variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 22:48:44 +00:00
auria
51cc6b8d5c
Improved StringUtils::insertValues to only print warnings, not crash, when something is wrong
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-23 01:30:38 +00:00
auria
9f27068fb7
Fixed kart paths randomness issue (and probably many others) : don't continuously call srand, srand is made to be called ONCE only, repeatedly calling srand gives very poor randomisation
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-19 01:55:29 +00:00
aeonphyxius
90a0bf28cc
build under linux + codeblocks
...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 15:08:28 +00:00
hikerstk
940fb65e8a
Bugfix: if an xml attribute for an integer array is an empty string,
...
an array of length 1 with a 0 would be returned instead of an empty
array.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-14 21:08:40 +00:00
hikerstk
fc202a57f5
Some code cleanup: made input data structure to follow the m_
...
notation, removed unnecessary include.
Added new field to input that stores the character (i.e. the
visual character) of a key (but it's not used yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6504 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-11 20:59:49 +00:00