Giel van Schijndel
7211a9e2b5
Revert r4776 as it is a duplicate of r4775
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4778 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 12:09:54 +00:00
Per Inge Mathisen
914cf90fb4
Add macros astrlcpy and astrlcat that work like strlcpy and strlcat
...
but with automatic length detection for fixed size arrays.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4777 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 12:08:30 +00:00
Giel van Schijndel
199adccc0a
ASSERT that radarBuffer != NULL at the only place where we use it
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4776 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 12:07:43 +00:00
Per Inge Mathisen
f39e1617ba
Revert change in r4767 that moved radar initialization from stage
...
two to stage three, since this caused bug #11578 : segfault in radar.c
reported by Jan Dittberner.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4775 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 12:07:07 +00:00
Freddie Witherden
3914e26f1b
Fix a bug in widgetBlurImpl which could cause a segfault.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4774 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 11:23:55 +00:00
Freddie Witherden
471e68f998
Fix a typo/spelling error in widget.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4773 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 10:52:41 +00:00
Freddie Witherden
b22e2c8aae
Update the betawidget library; add Doxygen docblocks for the methods in widget.h; make the event handler callbacks accept void *userData.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4772 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-25 23:20:16 +00:00
Per Inge Mathisen
1ee52fc422
Fix overzealous assert reported in bug #11569 : crash when starting transport by Jan Dittberner.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4771 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-25 19:15:39 +00:00
Roman C
307694d9d0
Holding down SHIFT while giving unit an order doesn't queue a waypoint anymore (holding down CTRL still does this), instead it gives a unit a scout command instead of a move command. This will make a unit stop when it encounters an enemy on its way to the destination.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4770 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-25 19:11:51 +00:00
Per Inge Mathisen
7533f7880f
More partial patch #969 : Rewritten minimap code merging
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4769 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 20:55:55 +00:00
Per Inge Mathisen
81bf897f61
More partial patch #969 : Rewritten minimap code merging
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4768 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 20:45:01 +00:00
Per Inge Mathisen
9de00487a8
Merge in mostly cosmetic pieces of patch #969 : Rewritten minimap code
...
to minimize the size of the patch.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4767 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 20:32:24 +00:00
Roman C
71752aaa2b
Add missing function declarations.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4766 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 20:28:07 +00:00
Roman C
7d6fe6bdff
Fix problems caused by beacon code. This should fix bug #11005 and bug #11373 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4765 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 20:02:02 +00:00
Per Inge Mathisen
f3922f404a
Add basic map saving to in-game editor. Not yet useful for real world stuff.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4764 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 19:49:43 +00:00
Roman C
b149f0838e
Mini-pods are stronger in long range.
...
Lancer, Tank Killer, Light and Medium cannons are weaker.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4763 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 18:27:23 +00:00
Roman C
1beb25aca0
Tweak tank Bodies' cost to reflect their usefulness. Later bodies are more effective than early ones.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4762 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 18:24:47 +00:00
Freddie Witherden
f8eb466d16
Commit an early non-functional prototype of the new widget code. Feel free to modify as you see fit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4761 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 18:07:47 +00:00
Per Inge Mathisen
2ffc569a35
Clean up powerCheck, making the assert more informative.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4760 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 18:02:53 +00:00
Per Inge Mathisen
cefef3651c
Add doxygen markup to projectile code
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4759 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 17:23:11 +00:00
Per Inge Mathisen
5533cf265a
Add more doxygen markup, especially for widget code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4758 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 17:06:25 +00:00
Roman C
1b128781cf
-make sure commander's initial level doesn't get boosted in campaign
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4757 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 16:50:27 +00:00
Dennis Schridde
c071761a17
intfac5 for Grim
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4756 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 11:00:35 +00:00
Dennis Schridde
df4484ac70
Optimize Grim's textures, too
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4755 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:59:56 +00:00
Dennis Schridde
4ae8810b2b
More png optimisation
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4754 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:55:56 +00:00
Dennis Schridde
43ae5f2c3f
Reduce png sizes via opt-png and optipng
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4753 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:54:02 +00:00
Dennis Schridde
221a355472
And optimize with opt-png again
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4752 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:52:53 +00:00
Dennis Schridde
705a1b0a7e
Remove useless alpha-channel
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4751 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:51:40 +00:00
Dennis Schridde
bfd5e294bb
Reduce image size via opt-png (from littleutils, backdrop[3-6], missionend) or optipng (backdrop[0-2]).
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4750 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-24 10:49:51 +00:00
Roman C
fa133dd959
Aivolution:
...
-build at least 2 cyborg factories
-use more attackers during an attack
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4749 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-23 13:26:08 +00:00
Giel van Schijndel
747e22d243
Merge two if-statements
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4748 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 23:49:08 +00:00
Giel van Schijndel
b66fbbad42
Clean up fpathGroundBlockingTile, fpathHoverBlockingTile and fpathLiftBlockingTile in fpath.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4747 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 22:35:42 +00:00
Giel van Schijndel
e18c77c1ab
Revert commit of fpath.c in r4745 (was pure experimental stuff, which I accidentily committed along)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4746 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 22:32:54 +00:00
Giel van Schijndel
32e07924fb
Use <a href... for links in mainpage.dox (Doxygen recognizes that tag and uses it to generate documentation, even for, e.g. LaTeX)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4745 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 22:29:51 +00:00
Roman C
f053f4dc0e
Balance:
...
-drastically reduced cyborg template research cost (by 250%-300%) for:
Assault Gunner, Needle Gunner, Scourge, Flashlight Gunner, Super HPV Cyborg, Super Heavy-Gunner, Super Auto-Cannon Cyborg, Super Tank-Killer Cyborg, Super Pulse Laser Cyborg, Super Rail-Gunner, Super Scourge Cyborg
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4744 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 18:42:17 +00:00
Per Inge Mathisen
516974e869
Fix bug #11549 : Placing buildings does not level terrain properly, reported by Dale Gill.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4743 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 16:35:14 +00:00
Roman C
e1aa71d365
Aivolution AI:
...
-add some templates for unupgrgaded factories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4742 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 12:50:08 +00:00
Roman C
4e8bd466e3
-add some T1 AI templates for factories without factories modules
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4741 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 12:48:03 +00:00
Giel van Schijndel
f7c476374f
Simplify function audio_ObjectDead():
...
* Don't check whether the given pointer is NULL for one billion times
* Move some variables into a more local scope
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4740 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-22 00:59:18 +00:00
Giel van Schijndel
12d2e20f47
Use the correct function prototype
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4739 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 23:33:59 +00:00
Roman C
61cb4979d8
Give enemy weapon droids more priority when looking for a target.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4738 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 19:58:14 +00:00
Giel van Schijndel
406ab54031
Lets not use `goto` when a simple `return` suffices
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4737 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 18:55:48 +00:00
Giel van Schijndel
11c2f3547e
Mark global variables `psOpen` and `apsNodes` as static since they're not used in other files anyway
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4736 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 18:51:03 +00:00
Giel van Schijndel
c3df150408
Bump the required Flex version from 2.5.33 to 2.5.35
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4735 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 18:18:41 +00:00
Per Inge Mathisen
843713a153
Add backend support for multiple brush sizes for internal map editor.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4734 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:14:13 +00:00
Per Inge Mathisen
e853c606f8
A little bit of indentation cleanup so that the code can be read.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4733 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:12:56 +00:00
Per Inge Mathisen
650447d833
Fix crash when trying to delete text coming from a clipboard paste.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4732 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:11:48 +00:00
Per Inge Mathisen
81c88dbf38
Purely cosmetic cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4731 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 17:02:46 +00:00
Per Inge Mathisen
406fdaea13
Add new reticule button icons for edit mode.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4730 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 13:30:03 +00:00
Giel van Schijndel
18824153a0
* Add Doxygen documentation to yet some more functions
...
* Rewrite function `fpathHashPresent` to use a for-loop rather than a dirty while-loop
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4726 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-21 09:52:19 +00:00