Commit Graph

8581 Commits (bea4607858532f7370678f9c261cf5ee452434b5)

Author SHA1 Message Date
Cyp bea4607858 Bump arbitrary structure limit of any structure type from 255 to 4294967295.
255 limit was probably due to the important need to save 12 bytes of memory per structure type per player.
2011-02-12 22:29:32 +01:00
dak180 e87b3c01a9 Merge remote-tracking branch 'refs/remotes/origin/master' 2011-02-12 12:09:34 -05:00
dak180 48e30ae04f Use StaticAnalyzer builds for the buildbots. 2011-02-12 12:01:00 -05:00
cybersphinx caee6e3da7 Change video download location to Sourceforge for the Windows installer. 2011-02-10 21:20:29 +01:00
cybersphinx 7232b97fc8 Use a tarball for quesoglc instead of svn export. 2011-02-09 22:55:23 +01:00
cybersphinx d3219d93cf Change the backup download location for the cross-build.
Use wzhost.wz2100.net instead of fontys.nl.
2011-02-09 21:58:41 +01:00
Cyp 67dfa3c2e1 Fix bogus "incompatible mod" kick in games with scavengers.
Fixes ticket:2477.
2011-02-09 18:21:40 +01:00
dak180 8989f42afe Add a category to the mac's app bundle. 2011-02-08 00:40:14 -05:00
Per Inge Mathisen 294335e194 Clean up the IdToNN() functions. Patch reviewed by Cyp. 2011-02-06 16:14:20 +01:00
Per Inge Mathisen a9169a0339 Constify some template function string parameters. 2011-02-06 13:01:39 +01:00
cybersphinx 7d18ab826d Fix cross-build. 2011-02-06 03:38:28 +01:00
cybersphinx 1db938cd0b Set a window icon.
lib/framework/wz2100icon.h created from the 32x32 icon from
icons/warzone2100.ico by the Gimp's C code export.

Closes #2465.
2011-02-05 18:23:00 +01:00
cybersphinx ce3de81d64 Configurable downloads directory for the cross-build script.
Can be set as "DOWNLOADS=/where/ever/you/want" in win32/__BUILD_CONFIG.USER.
2011-02-05 18:00:39 +01:00
cybersphinx 7b0316696e Add cast to fix compilation with -Werror. 2011-02-05 18:00:39 +01:00
Giel van Schijndel e7d17ecda0 exceptionhandler: print *exact* faulting instruction
Use the signal handler's `sigcontext` to find the exact stack frame and
instruction address where the fatal signal ocurred, then disassemble
those exact locations (rather than hoping the 4th frame is the offending
one).

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2011-02-05 16:47:34 +01:00
Cyp 451b98d8da Make DACTION_ROTATETOATTACK handle moving targets better.
Previous behaviour was to sit there watching the target for a long time, before remembering to attack.
2011-02-04 00:20:46 +01:00
Cyp 1726aacd4e Avoid VTOL overkill as well as regular droid overkill. 2011-02-03 22:54:36 +01:00
Cyp 6983eecf7e Make VTOL circling less weird. 2011-02-03 22:07:05 +01:00
Cyp b37d7f2510 Remove unused targetOrigin parameter from aiBestNearestTarget. 2011-02-03 20:45:14 +01:00
Cyp e69482f473 When patrolling, look for targets slightly out of range.
Fixes patrolling VTOLs flying past targets before deciding to shoot.
2011-02-03 20:35:19 +01:00
Cyp f1dc0f29e2 Fix VTOLs unable to bomb stuff due to a 3d instead of 2d range check.
Made the range check in lineOfFire ignore the height difference, like other range checks, so that VTOLs can drop bombs without having to land first.
2011-02-03 19:35:29 +01:00
Cyp 6b0c659cf6 Fix player team and colour remaining after player leaves. 2011-02-03 17:57:50 +01:00
Per Inge Mathisen 29c9695338 Hide the right menu item when we want to hide targetting visualization in non-debug mode. Fixes missing audio in-game options. 2011-01-30 23:26:04 +01:00
buginator 87c9f38dc3 Revert "Add guard to YY_NO_UNISTD_H definition."
This reverts commit f1ebbe6eba.

Revert "Set never-interactive option in lexers so that Flex doesn't use isatty() function from unistd."

This reverts commit c046bb88e5.

see ticket:2444 for more info.
close ticket:2444
2011-01-30 01:40:53 -05:00
buginator fb626e0b59 Removed neglected project files for VS2k8.
Use VS2k5 project files to convert to VS2k8 or VS2k10.

NOTE: If you are using VS2K10, you *MUST* recompile all libs in the devpackage, or it will not work.
At this time, I am currently keeping VS2k5 files up-to-date.
2011-01-30 01:26:44 -05:00
Per Inge Mathisen 02fe1d9564 Hide target tracking system option in non-debug builds. Closes ticket:686 2011-01-27 21:23:37 +01:00
Cyp 9220db320a Don't do "moral" or health checks in skirmish, since they break synch and don't make sense. 2011-01-27 18:37:59 +01:00
Cyp 69c4d4f63d Disable AIs cheating with research time in true multiplayer games (and breaking synch).
This might have worked without breaking synch at one point, if AI scripts were running on all clients (even if dormant on some).
2011-01-27 18:30:30 +01:00
Cyp 55e3065849 Fix bogus "incompatible mod" kick in games with AIs. 2011-01-27 16:46:22 +01:00
Cyp e6e252f565 Work around broken cross-compiler with -fstack-protector.
Fixes ticket:2448. Fixes ticket:2451. Fixes ticket:2452.

Broken compiler i586-mingw32msvc-g++ version 4.4.2 and version 4.4.4.

With -O0 -fstack-protector and i586-mingw32msvc-g++ version 4.4.4, theCompilerWorks() returns false.
struct TheCompilerWorks
{
	TheCompilerWorks() {}   // Does absolutely nothing.
	~TheCompilerWorks() {}  // Does absolutely nothing.
	char unusedArray[340];  // Unused.
};
bool theCompilerWorks()  // This function unconditionally returns true, since there's nothing else it could possibly do... Unless cross-compiling with -O0 -fstack-protector, of course.
{
	TheCompilerWorks harmlessObject;  // Unused variable, and no side effects whatsoever.
	printf("%s", "");                 // Do nothing.
	return true;                      // Return true.
}
2011-01-27 16:46:22 +01:00
Rene Jochum abcd0a4109 Stop connecting to the lobbyserver when it doesn't accept the game 2011-01-27 12:19:35 +01:00
Cyp 3b266356c0 Fix crash on calling getDroidOrderName(DORDER_TEMP_HOLD) or on invalid orders.
Fixes ticket:2461.
2011-01-26 12:03:56 +01:00
Rene Jochum 3137d042ea Fix NETregisterServer connecting multiple times also fixes the requirement to reconnect to the lobby for updates 2011-01-25 04:14:08 +01:00
Per Inge Mathisen c57bd507ed Add new unit test for model files, to check that they are in a valid PIE format. Remove unused and broken A* test. 2011-01-24 20:49:05 +01:00
Per Inge Mathisen 35c00b924d Make 'make check' work again. 2011-01-24 20:14:25 +01:00
Per Inge Mathisen cead34eea3 Hack around some accumulated brokenness to make --selftest work again 2011-01-24 20:07:30 +01:00
safety0ff f1ebbe6eba Add guard to YY_NO_UNISTD_H definition.
Closes #2444.
2011-01-24 13:09:16 -05:00
dak180 8ecf322cc7 A better way to copy the data directory. 2011-01-23 17:12:31 -05:00
Per Inge Mathisen 763d3d0380 Fix cross-compile warnings 2011-01-23 22:48:52 +01:00
Per Inge Mathisen 4df5268717 Do not load scripts for player who are not supposed to run them. This saves us from having to check this in the scripts themselves.
Also change some player functions from unsigned to signed since a missing scavenger player is sometimes communicated as -1.
2011-01-23 21:48:10 +01:00
Per Inge Mathisen beeb1fb77e New backdrop image by jorzi 2011-01-23 21:44:04 +01:00
littlepig ba7607967c Refactoring of case MOVEFIRE in actionUpdateDroid, in action.cpp 2011-01-23 13:03:31 +00:00
Per Inge Mathisen 3f5128d8d5 Fix fix for script crash due to not nulling script objects on death. 2011-01-22 22:30:26 +01:00
Per Inge Mathisen bf6eba1021 Add more death logging to trace odd script bugs 2011-01-22 20:38:27 +01:00
Per Inge Mathisen 34b3161be0 Fix blocking bug in danger map code if a larger than 2v2 building is placed on top of the player's starting position. 2011-01-22 20:14:21 +01:00
Per Inge Mathisen 1c1a9a5be1 Fix unused var warning 2011-01-22 18:43:04 +01:00
littlepig affcedaa2d removed DORDER_MOVE_ATTACKWALL and DORDER_SCOUT_ATTACKWALL orders due to not being used. 2011-01-22 13:09:06 +00:00
Per Inge Mathisen f30c15bf20 New script function BASEOBJ getDerrick(int) that returns indexed derrick objects. Can be iterated until it returns a NULLOBJECT.
Modify semperfi to use this function for attacks of opportunity against undefended oil derricks.
2011-01-22 14:01:30 +01:00
dak180 46aadf5a70 Switch the bot builds to use git. 2011-01-22 02:18:34 -05:00
littlepig 44ebc96366 Removed function cmdSelectSubDroids due to not being used on the code. Cleaned BOOL from cmddroid.h/cpp. 2011-01-21 17:46:06 +00:00