Commit graph

33 commits

Author SHA1 Message Date
Poul Sander
e084973f47 Merge branch 'master' into reproducible-date 2017-06-27 13:26:38 -07:00
Simon McVittie
90a23971c8 Pick up date from SOURCE_DATE_EPOCH, for reproducible builds
The goal of reproducible builds is that a rebuild of the same source
code with the same compiler, libraries, etc. should result in the same
binaries. SOURCE_DATE_EPOCH provides a standard way for build systems
to fill in the date of the latest source change, typically from a git
commit or from metadata like the debian/changelog in Debian packages.

This does not change anything if SOURCE_DATE_EPOCH is not defined;
the intention is that a larger build system like a Debian package
will define it.

Please see https://reproducible-builds.org/ for more information about
reproducible builds.

Originally sent to ioquake3 as commit
9c76b546e3
(which also touched engine files not present here).

Signed-off-by: Simon McVittie <smcv@debian.org>
2017-06-25 00:08:13 +01:00
Simon McVittie
3f7769b241 build: define ARCH_STRING in Makefile on Linux and other GNU platforms
GNU platforms (Linux, kFreeBSD, Hurd) have endian.h to determine
endianness, so all architectures except x86_64 are in fact treated
identically, except that their ARCH_STRING is different.
The ARCH_STRING must always be identical to the ARCH from the Makefile,
otherwise the engine will not find its cgame, game and ui plugins
under their expected names and startup will fail. If we pass it in
from the Makefile, then an identical value is guaranteed, and we can
get rid of an increasingly long list of defined(__some_cpu__) tests.

The game-code does not actually use ARCH_STRING, but I've kept it
in order to be consistent with the ioquake3 engine.

On non-Linux platforms we only support a few architectures anyway,
so keeping the list up to date is less of a burden; *BSD porters
could probably use the same technique to get support for lots of
architectures with little effort, but I have not done that here,
because I cannot test it.

Windows must continue to support preprocessor-based architecture tests
in any case, so that the MSVC solutions (which do not use the Makefile)
can continue to work. However, Windows only runs on a few CPU families,
so this shouldn't be a significant burden in practice.

When cross-compiling, the tools are compiled for the build architecture
(COMPILE_PLATFORM, COMPILE_ARCH) rather than the host architecture
(PLATFORM, ARCH), so define ARCH_STRING to COMPILE_ARCH on a GNU
COMPILE_PLATFORM.

Originally sent to ioquake3 as commit
2a71948f21.

Signed-off-by: Simon McVittie <smcv@debian.org>
2017-06-24 23:41:06 +01:00
Svante Signell
cbe9ed91c2 Add support for the GNU/Hurd architecture
As with GNU/kFreeBSD, it's treated as "Linux": all three use the GNU libc
and runtime linker, which is mostly what matters for ioquake3.

From Debian, via ioquake3 commit
540e4225cc.

Bug-Debian: http://bugs.debian.org/679330
Reviewed-by: Simon McVittie <smcv@debian.org>
Signed-off-by: Simon McVittie <smcv@debian.org>
2017-06-24 23:33:09 +01:00
Cyril Brulebois
3574fd6d01 Fix failure to build from source on GNU/kFreeBSD
GNU/Linux and GNU/kFreeBSD both use the GNU libc and runtime linker,
which is the layer that this engine interacts with directly. The specific
kernel used is below the level that this engine is dealing with.

From Debian, via ioquake3 commit
d2f8b9f4bb.
Commit message added by Simon McVittie.

Bug-Debian: https://bugs.debian.org/413617
Reviewed-by: Simon McVittie <smcv@debian.org>
Signed-off-by: Simon McVittie <smcv@debian.org>
2017-06-24 23:33:01 +01:00
sago007
d2f44a96d9 Lots of formatting changes. 2017-01-02 18:33:46 +01:00
sago007
63faedb778 Removed some unused functions. One of those contained an "undefined behavior". Just making sure that it will never be used. 2017-01-02 17:42:44 +01:00
sago007
b1936f0cac Changed formatting. 2017-01-02 17:31:47 +01:00
sago007
9b1af21094 Move the version number in its own file and update the year 2016-08-23 21:02:34 +02:00
sago007
b2af194c02 Hide red and blue flag in Possession 2016-08-02 19:08:03 +02:00
sago007
b27e882d3b Replaced !Q_stricmp with Q_strequal in the cases where the stricmp function was used to test for equality.
While the !strcmp is common it is too easy for humans to misread it. I have fixed several bugs caused by people that after a long day no longer read "if the two strings do not compare then they must be equal". Q_strequal is a macro so there are no performance progrem, just easier to read code.
2016-06-29 23:14:29 +02:00
Protovision
b8349c5307 Update q_platform.h 2014-10-31 13:47:28 -07:00
Protovision
8894729851 Added check for x86_64 for Mac OS X.
Compiling on Mac OS X with x86_64 architecture fails with preprocessing error from code/qcommon/q_platform.h: "Architecture not supported". This change fixes that.
2014-10-30 00:45:02 -07:00
sago007@gmail.com
02113650ba Backport from ioquake3 r2356. Changes includes usage message for *tell commands
git-svn-id: http://oax.googlecode.com/svn/trunk@315 48ef5666-4144-11de-b6cc-f32266f7ba4a
2012-12-16 15:19:55 +00:00
sago007@gmail.com
3a473dc872 More "const" in function parameters
git-svn-id: http://oax.googlecode.com/svn/trunk@302 48ef5666-4144-11de-b6cc-f32266f7ba4a
2012-08-13 16:45:46 +00:00
sago007
ca51a28074 Now also executes mapscripts/g_MAPNAME.cfg and mapscripts/g_MAPNAME_GAMETYPENUMBER.cfg at the start of a game and mapscripts/g_default.cfg and mapscripts/g_default_GAMETYPENUMBER.cfg if the first does not exist.
git-svn-id: http://oax.googlecode.com/svn/trunk@294 48ef5666-4144-11de-b6cc-f32266f7ba4a
2012-01-29 12:11:12 +00:00
sago007
ae6aad4a5e Added Challenges to log
git-svn-id: http://oax.googlecode.com/svn/trunk@266 48ef5666-4144-11de-b6cc-f32266f7ba4a
2011-08-19 21:19:20 +00:00
sago007
606948f6c2 A lot of changes from ioquake3.
the following changes has been copied (revision numbers from ioquake3):
1939: Fix player queueing for tournament play (#4939)
1972: Fix spawnflag behaviour for trigger_hurt, patch by DevHC
1973: Fix one byte overflow
1981: ensure that ent->classname is always non-null (for entity numbers up to level.num_entities-1, and ENTITYNUM_WORLD and ENTITYNUM_NONE), for player entities and #ENTITYNUM_NONE in particular, patch by DevHC
1983/1984: Make bg_lib.c strchr ANSI-C conformant
1987: strrchr instead of Q_strrchr
2010: Calls to trap_CM_PointContents don't update their origins based on moving entities (water). Patch by Ensiform
2015: Automatically selecting player model in q3_ui does not work if skin is not specified, patch by Zack Middleton
2016: Grappling hook does not load trail shader, patch by Zack Middleton
2036: Clear game logfile handle after closing file.
2047: TA UI forces overstrike mode on when focusing an edit box, by Ensiform (I have not yet verified this in missionpack)
2048: strchr in video
2051
2056
2063


git-svn-id: http://oax.googlecode.com/svn/trunk@257 48ef5666-4144-11de-b6cc-f32266f7ba4a
2011-07-03 19:09:08 +00:00
sago007
c1f61209f7 Played around with some analyzers. Did not found much but a few obvious mistakes was fixed
git-svn-id: http://oax.googlecode.com/svn/trunk@256 48ef5666-4144-11de-b6cc-f32266f7ba4a
2011-06-28 17:32:55 +00:00
sago007
50d8830186 You can now use black charecters in your name provided that there is at least one non-black alphanumeric charecter.
git-svn-id: http://oax.googlecode.com/svn/trunk@219 48ef5666-4144-11de-b6cc-f32266f7ba4a
2010-06-12 09:40:25 +00:00
sago007
6ca5d5972f Added missing Q_EXPORT - used for native code compiling
git-svn-id: http://oax.googlecode.com/svn/trunk@182 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-11-12 17:06:10 +00:00
sago007
aeba290660 From ioquake3 svn revision 1692 + some old changes to make it work
git-svn-id: http://oax.googlecode.com/svn/trunk@165 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-10-22 16:50:27 +00:00
sago007
0f6ca78308 ClientCleanName changes imported from ioquake
git-svn-id: http://oax.googlecode.com/svn/trunk@157 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-10-05 20:18:23 +00:00
sago007
216398ed16 Must be in sync with engine or there could be possible exploits!
git-svn-id: http://oax.googlecode.com/svn/trunk@145 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-07-23 23:07:32 +00:00
karl.kuglin
640870a6dd This is a little hack to be able to build dll's for debugging under Visual Studio--Simple copy/paste/rename of the #ifdef __MINGW32_to #ifdef VSTUDIO
git-svn-id: http://oax.googlecode.com/svn/trunk@21 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-24 02:38:21 +00:00
sago007
f9e1724d2c Improved Q_CleanStr and added a version that does not remove colors. Only illigal chars
git-svn-id: http://oax.googlecode.com/svn/trunk@14 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-22 22:08:29 +00:00
sago007
33efe7d547 Added a color 8 - MENU color. The same orange that is normally used in menues. Used to cleanup server list.
git-svn-id: http://oax.googlecode.com/svn/trunk@13 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-22 21:47:37 +00:00
sago007
ece84c7192 Changed color clean. Double escape is no longer needed for colored server names.
git-svn-id: http://oax.googlecode.com/svn/trunk@12 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-22 21:14:42 +00:00
sago007
ac6d05e5cb Now compileable with msys under Windows
git-svn-id: http://oax.googlecode.com/svn/trunk@10 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-15 21:12:55 +00:00
sago007
c3fbc9fcb0 Removed un-needed header files
git-svn-id: http://oax.googlecode.com/svn/trunk@9 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-15 16:28:10 +00:00
sago007
c77fd9cb6b Deleted even more non-needed files
git-svn-id: http://oax.googlecode.com/svn/trunk@7 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-15 16:09:38 +00:00
sago007
e7e7e4c2ca Delete non-needed files
git-svn-id: http://oax.googlecode.com/svn/trunk@6 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-15 16:05:04 +00:00
sago007
4a087ee80f Some missing files
git-svn-id: http://oax.googlecode.com/svn/trunk@3 48ef5666-4144-11de-b6cc-f32266f7ba4a
2009-05-15 14:51:36 +00:00