Commit Graph

4058 Commits (1819c503c698131b3167f04f5f530c0197ef09a3)

Author SHA1 Message Date
Giel van Schijndel 7688f97ed3 * Add support for single line comments to the WRFLexer
* Perform non-greedy matching to match string literals (the data type in WRF files)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4813 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-27 01:46:55 +00:00
Giel van Schijndel c6fb031d82 Don't use a 'Whitespace' token, use 'Text' instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4811 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-27 00:50:54 +00:00
Giel van Schijndel 58bf1f3481 Make the WRFLexer parse text/x-wrf files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4810 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-27 00:47:56 +00:00
Giel van Schijndel 91168e9116 Remove idiotic text/plain mime-types from Python source
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4809 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-27 00:27:44 +00:00
Giel van Schijndel 56e269d2c1 Add a lexer for Pygments (a generic syntax highlighter in Python)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4807 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 23:38:28 +00:00
Dennis Schridde cacf875ca9 Updated french by Vincent Laviron <Althalus> et al.
and: update-po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4806 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 21:57:13 +00:00
Per Inge Mathisen ba0b3db627 Fix bug #11580: game crashes with SIGABRT when starting mission beta 1,
reported by Jan Dittberner.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4801 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 17:06:57 +00:00
Per Inge Mathisen 7204273bad Double the longest possible path that can be generated at once.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4790 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 16:00:53 +00:00
Giel van Schijndel ab2bafd7a4 Merge r4271 from deprecated 2.1 branch into trunk:
* Make log output use LOG_SCRIPT instead of LOG_NEVER and LOG_WARNING
 * Some random cleanups


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4788 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 15:21:23 +00:00
Giel van Schijndel 8154cad286 Note that a "privileged user" usually is "root"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4786 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 14:33:32 +00:00
Giel van Schijndel 61c8bbc4b9 * Don't "Guarantee nul-termination" after snprintf as snprintf does that itself already (per the C99 spec)
* Use strlcpy for copying strings instead of snprintf "%s"
 * Don't cast the return value from vsnprintf to (void)
 * When we use va_start make sure to use va_end as well...
 * Fix indentation


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4785 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 14:21:41 +00:00
Dennis Schridde 477711c9a4 Optimise more pngs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4784 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 13:59:50 +00:00
Dennis Schridde 3c3a5d9a89 Formating and dont download gpg-signatures, which wont be checked by anyone anyway.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4783 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 13:54:08 +00:00
Dennis Schridde 12fd89098c Optimise NEWST tiles, too
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4782 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 13:42:08 +00:00
Dennis Schridde 3576681fa7 Import translations from branches/2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4781 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 13:26:49 +00:00
Freddie Witherden d5e651127e Add a trailing \n to the files in betawidget/ (which got trimmed for some reason)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4780 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 13:22:48 +00:00
Giel van Schijndel c62840d5d8 Don't just ASSERT (debug-only) when we're out of memory, use debug(LOG_ERROR) and abort() instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4779 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-26 12:11:16 +00:00
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