Commit Graph

3723 Commits (26c9ae418a92db323e14502e5b9c322c48be2d02)

Author SHA1 Message Date
Roman C 26c9ae418a Balance:
-anti tank weapons do 15% more damage to bunkers
-bunker buster does 12% less damage to bunkers
-MG does 200% more damage to VTOLs (effectiveness increased from 25% to 75%)
-increased body points of light cyborg weapons by 40%

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4654 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-16 15:08:20 +00:00
Giel van Schijndel 2f7817c772 * Replace some uses of BASE_OBJECT* with DROID* to reduce yet some casting
* Fix indentation


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4653 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-16 00:15:29 +00:00
Giel van Schijndel 21b3597284 * Formations work purely, and only with DROIDs, so rather than casting back and forth to BASE_OBJECT* pointers, just stick to using DROID* pointers only
* Huge simplification due to not needing to handle other derivatives of BASE_OBJECT than DROID anymore (also a huge reduction in the amount of casting)
 * Don't check whether a DROID has -> type == OBJ_DROID anymore (fpath.c left-over)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4652 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-16 00:01:41 +00:00
Giel van Schijndel 1b071cb08f Cleanup:
* Indentation fixes
 * Const correctness
 * Simplification (less casting) and use "return retval;" rather than "ret = retval; return ret;"


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4651 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 23:11:42 +00:00
Giel van Schijndel 0dd849b875 Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4650 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 23:08:38 +00:00
Giel van Schijndel a81756eba5 * Pathfinding works purely, and entirely with DROIDs, so rather than casting back and forth to BASE_OBJECT* pointers, just stick to using DROID* pointers only
* Get rid of some (SDWORD) casting (in all these cases the assignment operator will take care of that anyway)
 * Don't cast an unsigned variable (UDWORD) to a signed integer (int) for printf purposes, use an unsigned integer instead (unsigned int)
 * Remove duplicated code (an if-statement had (X == Y || X == Y) as part of its condition, reduced it to (X == Y))
 * Make the copy of aDirOffset in astar.c const as well


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4649 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 22:54:37 +00:00
Giel van Schijndel a855f10f4e * Make static array aDirOffset const
* Rewrite the Doxygen comment for fpathUpdate()
 * Some style fixes


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4648 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:51:26 +00:00
Freddie Witherden 12ff794e99 Update fpathRandChoice to use rand() as opposed to a custom generator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4647 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:46:03 +00:00
Giel van Schijndel d96f65d3be Don't include fpath.h if it isn't necessary
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4646 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:41:47 +00:00
Giel van Schijndel ade39a7c6f Don't include astar.h if it isn't necessary
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4645 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:35:19 +00:00
Per Inge Mathisen c485aa69f5 Weed out some forgotten dead code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4644 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:31:35 +00:00
Per Inge Mathisen 1403e9c36a Remove impossible conditional
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4643 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:20:53 +00:00
Giel van Schijndel 1bb45ae917 Make apsNodes in astar.c a static array (instead of dynamically allocated)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4642 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:19:24 +00:00
Per Inge Mathisen 2e78183ee3 Add tile rotation to tagfile definition file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4641 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:03:50 +00:00
Freddie Witherden 83da7b8008 Commit patch #1055 which cleans up droid.c by removing a large amount of dead code. There should be no functionality changes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4640 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 21:00:20 +00:00
Per Inge Mathisen dda21eb413 Remove zones from tagdefinitions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4639 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 20:58:53 +00:00
Giel van Schijndel 3e825febcd Update the Code::Blocks and MSVC projects for r4637
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4638 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 20:55:57 +00:00
Per Inge Mathisen ed5ffbfa8b Remove zones and gateway routing. Also remove optimization of path steps by
line of sight raycasting. This removes two whole classes of path-finding bugs
at the cost of some performance. Hopefully we can address performance later.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4637 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 20:52:53 +00:00
Giel van Schijndel 5de54b2936 Lets not depend on the preprocessor's ability to concatenate strings as MSVC doesn't seem to be that good at it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4636 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 18:52:16 +00:00
Giel van Schijndel 8c9e8193aa #define PACKAGE_DISTRIBUTOR to "UNKNOWN" if it isn't defined at the compiler commandline
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4635 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 18:45:35 +00:00
Giel van Schijndel d854beb5d5 Throw out my dirty preprocessor abuse to prevent duplication of a few characters in favour of code reability (apparently for MSVC as well)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4634 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 18:32:51 +00:00
Giel van Schijndel 983e48834c Use GetModuleFileNameA instead of GetModuleFileName to make sure we can build properly, even on Unicode builds
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4633 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 18:25:20 +00:00
Per Inge Mathisen fa0b7162fa Do not assert with invalid position if a droid tries to build where it
stands, and it has no HQ or landing lights to guide it away from there.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4631 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 16:55:44 +00:00
Roman C 24e128b5dc - units get effectiveness boost (equal to the promotion to the next rank) just by being assigned to a commander
- commander-related cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4630 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 15:15:19 +00:00
Roman C fa90c040c7 Aivolution AI:
-fix AA defenses construction

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4629 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 14:37:11 +00:00
Roman C 77a0763515 Weapon Balance:
-increase LasSat damage and splash damage by 50%

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4628 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-15 13:44:49 +00:00
Giel van Schijndel 36766ec8ce Use a more unified system for the "default" info in exception reports (i.e. the same code for the Windows & GDB on GNU/Linux handlers)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4623 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 23:17:51 +00:00
Giel van Schijndel a1f829c79e Merge r4112 from the 2.1 branch into trunk:
* Fix mistakes noted on the forums


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4618 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 22:58:49 +00:00
Giel van Schijndel 8049b7fbba Merge r4019 from the 2.1 branch into trunk:
Remove ABOUT-NLS and INSTALL
ABOUT-NLS contained unrelated information about the gettext project and INSTALL was just the standard file, with duplicated info in COMPILE.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4617 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 22:56:20 +00:00
Roman C faeb2c05c8 Weapon Balance:
-Cyborg Grenadier: decrease short range accuracy, increased long range accuracy, increased damage by 50%.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4616 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 22:07:10 +00:00
Giel van Schijndel c6a0ad011e restrict is not a keyword to C++, so don't use it when compiling as C++
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4615 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 21:39:14 +00:00
Roman C 89fc6d5edd Allow a script to have more than strings at a time.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4614 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 20:12:27 +00:00
Giel van Schijndel 78612ffe4f Lets not bother users by telling users the download failed because it was succesfull (no, that's not fuzzy logic, it isn't logic at all)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4613 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 19:28:57 +00:00
Giel van Schijndel c29591c6c7 Use "correct" filenames for the music modpack
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4612 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 19:23:06 +00:00
Roman C 3cc53501a0 Aivolution AI:
-thank the player who gifted a unit

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4611 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 19:22:29 +00:00
Roman C d63a021184 Stock AI:
-make use of trucks gifted by other players

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4610 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 19:21:34 +00:00
Roman C 467d88158c -make sure AI receives gifted droids, this fixes bug #11442.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4609 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 19:19:16 +00:00
Giel van Schijndel f70cadb837 During installation (NSIS) provide the option to download and install the new music modpack
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4608 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 18:33:31 +00:00
Giel van Schijndel f23ef17e7d During uninstall (Windows - NSIS installer) also remove Aivolution
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4607 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 17:41:30 +00:00
Roman C 7c5c437e9e -make sure the last AI player doesn't get restored when a client joins an mp game
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4606 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 17:25:49 +00:00
Giel van Schijndel 26c2c50036 Add the ability for auto-loading of mods
Automatically load all mods found in:
 * "mods/global/autoload" in both campaign as well as multiplayer
 * "mods/campaign/autoload" in campaign only
 * "mods/multiplay/autoload" in multiplayer only


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4604 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 16:15:29 +00:00
Giel van Schijndel a6d84b7c16 Pass NULL to addSubdirs and removeSubdirs, not false (as the target type is a char* pointer)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4603 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 16:15:20 +00:00
Roman C 49a6050b07 -don't apply game difficulty setting during multiplayer games, since it can negatively affect syncing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4602 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 15:48:56 +00:00
Giel van Schijndel 11c5df9783 Dang, I should go to bed... r4600 contained yet another stupid error
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4601 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 02:19:28 +00:00
Giel van Schijndel fd0b4b56af Fix small error from r4599
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4600 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 02:15:07 +00:00
Giel van Schijndel f1ac1acad0 Use file __BUILD_CONFIG.USER for user specific configurations
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4599 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 02:09:33 +00:00
Giel van Schijndel cc46c9c737 Use ${PREFIX} as installer-extdir instead of ${PREFIX}/bin
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4598 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 02:00:36 +00:00
Giel van Schijndel e7a54e8ca3 Keep debug disabled when building an installer...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4597 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 01:51:16 +00:00
Giel van Schijndel 826dd585f3 Use ${CONF_EXTRA_FLAGS} for disabling/enabling debug builds
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4596 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 01:46:54 +00:00
Giel van Schijndel 42f7e913b3 Also check for Libiberty and BFD when crosscompiling for Windows
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4595 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 01:09:51 +00:00