115 Commits

Author SHA1 Message Date
Marianne Gagnon
ba3027b6bb Little improvement to for_in macro. Still only works on PtrVector though 2014-08-13 19:47:59 -04:00
Flakebi
55090a0566 Unify log output 2014-07-22 12:54:11 +02:00
KroArtem
fe9cd74934 fix some cppcheck warnings 2014-01-25 23:21:12 +04:00
hikerstk
7cdca13d7b Fixed all(?) warnings about signed and unsigned comparisons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-07 00:09:19 +00:00
hikerstk
b074dc5f09 Moved all VS specific math code (i.e. for round(), isnan) into vs.hpp
and used it everywhere (I hope).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14640 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-06 03:49:55 +00:00
hikerstk
ad0fd41d52 Fixed compiler warnings on VS.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-01 22:16:43 +00:00
auria
5899a26aad Merge cand's graphical improvements branch!! There are many known issues folks, so don't cry victory just now, this is just the beginning. Especially, shadows do not work correctly at this time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-30 21:33:06 +00:00
hikerstk
8247f73604 Replaced tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 12:52:39 +00:00
hikerstk
c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
auria
35d3807904 Add missing includes for some recent compilers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-24 00:29:05 +00:00
curaga
ead8c059cb Remove some unused irr_driver includes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-26 13:31:38 +00:00
curaga
b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
492b58f8ce Bugfix: tabs could not be selected anymore. Reason was a change
from std::string & to const std::string & in r10008, and as
a result a virtual function was not overloaded anymore.
This patch changes all transmitEvent functions to use
const std::string &.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 23:39:28 +00:00
hikerstk
b5c3266d2e Besides some cosmetic changes added & to setSelection parameter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9919 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 01:07:05 +00:00
auria
480ab1c436 Make code a bit more robust at detecting problems (not fixed yet though)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 22:53:13 +00:00
funto66
a3ca6dadaf Separated the post-processing calculations from IrrDriver
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9319 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-21 23:29:37 +00:00
auria
fa464cd4ab Fixed minor in-game menu bug found by KroArtem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-18 15:43:23 +00:00
auria
b6be9ad17a Fixed embarrassing compilation error, too much copy and paste
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-03 00:09:23 +00:00
auria
be939e5e86 Improve behavior when more players than karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-02 22:43:38 +00:00
auria
a5d4275554 Fixed various crashes related to having more players than karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-02 22:34:28 +00:00
auria
d13f46fdd1 Minor improvement to ribbon layot, don't reserve space for arrows when arrows are hidden
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8751 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 21:04:22 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
hikerstk
4ccf633289 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 11:47:43 +00:00
auria
9b4df89d2e More tweaks to the code that determines number of ribbon rows
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-26 00:55:33 +00:00
hikerstk
8c22b21166 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 04:56:18 +00:00
auria
255a9d5619 More attempts at tweaking ribbon row-count decision formula
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:44:00 +00:00
auria
19ce15aee9 More attempts at tweaking ribbon row-count decision formula
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:12:21 +00:00
auria
ab3822242f More attempts at tweaking ribbon row-count decision formula
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:10:51 +00:00
auria
edb21d16ce Tweak the algorithm that chooses the number of rows in a ribbon, hopefully gives better results at high resolutions now in kart screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 00:41:07 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
4e85539c21 Remove commented out code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-15 23:26:12 +00:00
auria
2ed8f0f6d2 highlight ribbon arrows as requested by Joerg
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-15 23:08:15 +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
9c0ec5c414 Fix wrong resolution selected when enough resolutions to enable scrolling
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-06 22:39:54 +00:00
auria
76374f0198 Shut up annoying warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 01:30:38 +00:00
auria
f3f58cc297 Fix challenges screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8081 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 01:10:06 +00:00
auria
fdbafeb5ff More FIXME cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7233 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 19:06:45 +00:00
auria
04e08b78ad Remove a few unuseful FIXMEs, replace with appropriate documentation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:41:19 +00:00
auria
507b9e5822 Fixed rare assertion failure
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-25 01:40:27 +00:00
hikerstk
648d5a38d2 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-17 04:41:46 +00:00
xapantu
9451a488a1 Fix a crash when the kart which is focused in the kart selection screen is a deleted addon, it is a bit dirty, maybe there is a cleaner way ?
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6289 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-16 13:05:12 +00:00
hikerstk
3bc2a8b93d Fixed VS compilation problem (log from integer value).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 04:46:57 +00:00
auria
69feb27034 Simplified ribbon code by not invoking number of row estimation code for single-row ribbons...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6087 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 17:36:02 +00:00
auria
a17b78d5fc Tweaked formula used to determine best number of rows in dynamic ribbon. It now looks fine in all resolutions I tested. Hopefully the now rather complicated formula doesn't have unforseen issues...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6086 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 17:31:59 +00:00
hikerstk
2e48901c69 Updated VS project file, fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6076 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 14:44:18 +00:00
auria
874e365661 Improved dynamic ribbon algorithm to allocate a number of rows that will leave less empty space on higher resolutions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6068 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-19 19:01:55 +00:00
auria
7058d30947 Fixed mossing notification in dynamic ribbon that could result in a visual glitch for plaer 0 in the kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-18 17:14:21 +00:00
auria
a77405d53a Fixed potentially dangerous name clash between Widget members and SkinWidgetContainer members + added the proper m_ prefix as per our style guidelines along the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 19:25:20 +00:00
auria
41dbc1311d Fixed badges wrongly remaining on empty ribbon items
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-27 17:40:00 +00:00