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
b4c8031d12
Merge remote branch 'origin/qt' into qtscript
2011-01-30 23:46:19 +01:00
Per Inge Mathisen
27741a2200
Merge branch 'master' into qt
...
Conflicts:
macosx/Warzone.xcodeproj/project.pbxproj
tests/astartest.c
2011-01-30 23:45:39 +01:00
Per Inge Mathisen
fc0cdbdb29
Merge remote branch 'origin/qt' into qtscript
2011-01-30 23:42:52 +01:00
Per Inge Mathisen
9344462e92
Add abstract file system interface for Qt access to physfs data resource. Thanks to EvilGuru for the idea and review.
2011-01-30 23:39:22 +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
85ec3f4098
Add save/load code for qtscript. General improvements.
2011-01-29 22:49:00 +01:00
Per Inge Mathisen
e86b70ade1
qt branch: Add application icon. Closes ticket:2465
2011-01-29 20:22:43 +01:00
Per Inge Mathisen
d025ff4c95
qt branch: Remove two removed files from POFILES.in
2011-01-27 22:19:20 +01: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
Per Inge Mathisen
5244ea8c7a
Fix timers. Initial work on game object representation.
2011-01-26 22:13:47 +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
70baa03ffb
A better way to copy the data directory.
2011-01-23 20:09:52 -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
c1f1c3e31d
Initial test of qtscript
2011-01-23 22:30:57 +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
Cyp
d39112244b
Merge remote branch 'origin/master' into qt
...
Conflicts:
lib/framework/frame.h
src/main.cpp
2011-01-22 23:05:36 +01: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
littlepig
ec90151d03
Stilling and design improvements over the last commit.
2011-01-20 22:18:00 +00:00
littlepig
9119852cc0
Rest of functions from group.h changed to methods of class DROID_GROUP.
2011-01-20 22:18:00 +00:00
littlepig
75e8001219
Added a std::list<DROID_GROUP *> grpGlobalManager; to replace the 'firstgroup' to avoid every DROID_GROUP object having previous and next DROID_GROUP object to erase all at end shutdown.
...
DROID_GROUP became class. grpJoin function was made a method of DROID_GROUP, DROID_GROUP::Add(DROID*psDroid) and every instance of grpJoin(DROID_GROUP*, DROID*) was replaced by DROID_GROUP*->Add(DROID). Code was tested both compile and run, and everything is working as supposed, including Initialization and ShutDown of a game.
2011-01-20 22:18:00 +00:00