Tobias Zwick
94c618d153
add new type C4TimeMilliseconds for time measurements to solve problems when GetTime() overflows ( #251 )
...
The new type C4TimeMilliseconds behaves for the most part like a uint32_t but is overflow-proof in comparisons.
In some places, a 0-value (or uint_max) of the variable storing the time had the special meaning "not set yet". This has been resolved by having it as a pointer to C4TimeMilliseconds with NULL meaning that it has not been set yet.
2013-12-04 19:35:07 +07:00
Tobias Zwick
7b9c1d5a9e
refactor: consistently use time_t t... variables for times in network system, scheduler, gui
...
The network used to cast GetTime() to int, but GetTime() is an unsigned long. This might cause problems if GetTime() returns big integers (see #251 ). To solve this, the StdSchedulerProc interface had to be extended with another function in order to eliminate the magic return value -1 of GetNextTick for "no scheduled execution".
2013-11-29 17:28:04 +07:00
Tobias Zwick
8da7c6b20f
add internationalization for responses from the masterserver/league server
2013-11-06 13:35:27 +07:00
Tim Blume
240193ad5a
Remove remains of Direct3D support
...
Direct3D hasn't worked for more than a year now, and there don't seem to
be any efforts to revive it. Remove it and concentrate on better OpenGL
support.
2013-11-02 21:39:34 +01:00
Günther Brammer
864c5c7ea8
copyright notices update 2012
2013-01-12 16:31:40 +01:00
Philipp Kern
e037300801
Fix spelling mistake: ressource -> resource.
2012-10-21 22:20:43 +02:00
Armin Burgmeier
b4aafdd874
Remove build number aka C4XVER4
2012-10-18 23:54:50 +02:00
Peter Wortmann
8b9ace23c9
Fixed the surrender dialog showing after declined kick vote
2011-05-08 22:36:48 +02:00
Günther Brammer
5f2f995852
Unify the #include blocks a little bit
...
One line for C4Include.h, one for the .h corresponding to the .cpp, one
empty line, the other C4* includes, another empty line, external headers.
2011-11-01 23:17:41 +01:00
Günther Brammer
2b6f4432de
Rename lpDDraw to pDraw
2011-10-03 16:30:18 +02:00
Günther Brammer
9bc61db360
copyright notices update 2011
2011-09-01 16:58:52 +02:00
Günther Brammer
0c5f1be59d
Fix network connection error messages after OSTR removal
...
Using const char * as an out parameter doesn't work. Finally noticed by
gcc 4.6.
2011-03-28 18:29:19 +02:00
Julius Michaelis
61d93c39cf
Fixed some files which didn't include C4Include properly (all except C4Globals.cpp caused by 17d0ceb9ef2f)
2011-03-14 16:32:01 +01:00
Günther Brammer
6c2a89eaf8
Replace timeGetTime with a platformneutral GetTime wrapper
2011-03-13 17:25:35 +01:00
Armin Burgmeier
41a1b5867d
Change .c4g extension to .ocg
2011-03-13 16:16:45 +01:00
Armin Burgmeier
e282bf9a9c
Change .c4s extension to .ocs
2011-03-13 16:11:55 +01:00
Martin Plicht
872fbe162f
C4Network2: Fix comment typo
2010-12-24 14:17:42 +01:00
Günther Brammer
be342d4a51
copyright notices update 2010
...
This time with more manual checking and using git blame -M -C, so that
a few cases of copied code get a copyright notice corresponding to
their initial introduction.
2010-12-23 01:01:24 +01:00
Günther Brammer
0d59854c5c
GUI: Remove superfluous checks for IsGUIValid() and GetScreenS()
...
Some of them should rather check whether the user has closed the window,
though.
2010-10-30 02:08:58 +02:00
Günther Brammer
75c2b21ee8
GUI: Remove superfluous checks for pGUI
2010-10-30 01:47:50 +02:00
Günther Brammer
16609432cb
Remove Regjoinonly flag, unregistered users can now join all games
...
The commandline option already went away anyway.
2010-10-04 18:07:46 +02:00
Günther Brammer
8e2ae2f543
Replace Application.DDraw with lpDDraw everywhere
...
There's no need for two globals always storing the same value.
2010-09-28 20:35:26 +02:00
Günther Brammer
a7e4dd9a9c
Rename some fullscreen flags to editor
2010-09-28 20:16:33 +02:00
Günther Brammer
17016a6695
Version: Reduce version number from five numbers to four
...
Removing C4XVER4 and renaming C4VERBUILD to C4XVER4. Also, make the
Makefile.am read the version from the Version.txt and generate C4Version.h.
2010-09-25 00:43:30 +02:00
Armin Burgmeier
9f65838ae8
Fix a couple of compiler warnings
2010-04-28 23:43:25 +02:00
Armin Burgmeier
c2924041c9
Fix seperate->separate everywhere
2010-04-01 23:08:06 +02:00
Benjamin Herr
4378de147c
Rerun astyle with missing \ added
2010-03-28 20:58:01 +02:00
Günther Brammer
b4e37b070b
Change all indentation with spaces to use tabs instead
...
This is a whitespace-only patch. Hopefully, it'll only affect rarely-changed
parts of the engine, since all regularly maintained pieces should already
use tabs.
2010-03-27 17:05:02 +01:00
Sven Eberhardt
2b39de9600
hgrevision mismatch message localization
2010-03-22 22:49:53 +01:00
Sven Eberhardt
5e48fd1a15
hg revision stored in engine and checked in network (MSVC only) message fix
2010-03-22 13:42:18 +01:00
Sven Eberhardt
9b7009de94
hg revision stored in engine and checked in network (MSVC only)
2010-03-22 13:41:14 +01:00
Benjamin Herr
f3b35227ea
avoid lots of gcc warnings
2010-01-25 05:00:59 +01:00
mizipzor
a53dae0c1b
Fixed compilation in MSVC2010
2009-11-25 19:38:54 +01:00
Nicolas Hake
52bde5a579
Remove BIG_C4INCLUDE define
2009-10-20 06:21:12 +02:00
Günther Brammer
9a8b5dd739
Replace BOOL by bool, TRUE by true, FALSE by false
2009-08-15 20:50:32 +02:00
Günther Brammer
572d00c32e
Move all source files
...
This might make stuff easier to find.
2009-08-10 17:59:18 +02:00