Commit Graph

1927 Commits (623ac960aed6c4f9fe17999e280699f7b2f6638c)

Author SHA1 Message Date
Dennis Schridde 623ac960ae - Revised first Paragraph by Fred et al.
- Setting mime-type to application/ was a bad idea since that enforces binary diffs


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2520 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 18:04:12 +00:00
Dennis Schridde 59a57b85fe Set correct svn:mime-type props.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2519 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 15:54:44 +00:00
Dennis Schridde f3c1cf2fb4 - Make scriptingmanual valid XHTML 1.1 + CSS 2
- Move it to doc/
- Move style definitions to external stylesheet


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2518 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 15:51:26 +00:00
Dennis Schridde 90cce5df9a Proper mime-type for XHTML is application/xhtml+xml
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2517 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 15:28:48 +00:00
Roman C 3c4f0e0528 Updated scripting manual.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2516 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 13:17:27 +00:00
Dennis Schridde 9c2ab4c04b - English text Readme was mistakenly announcing Alt+Tab as fullscreen toggle on Linux
- Use spaces for indention of tables in textfiles


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2513 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-30 16:18:12 +00:00
Dennis Schridde 976b7dd0fb Move readmes into doc/ subdir and add previously forgotten stylesheets.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2511 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-30 10:52:09 +00:00
Dennis Schridde b607700865 Document kick feature. Thanks to Fred who pointed out that the netcode supports this.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2510 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-30 10:34:03 +00:00
Per Inge Mathisen d224588975 Finalize fixes for allowing non-power-of-two texture pages.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2509 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-30 10:14:05 +00:00
Dennis Schridde 24d093186f Port of r2507: Add new Readmes by Kreuvf. Old README replaced with empty file to please Automake.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2508 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 20:58:36 +00:00
Per Inge Mathisen b564a02dc5 Try another fix. Reversing my earlier reversal, I now instead use bitshifts
for division and multiplication in map_coord and world_coord to get correct
rounding, where "correct" means similar to what it was in the original code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2506 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 19:42:29 +00:00
Per Inge Mathisen 1a61c2947c Remove commented out VISIBLE_SCROLL code, which, if enabled, would prevent
scrolling to areas outside visible (non-FoW) areas. This feature sucked.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2505 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 19:31:04 +00:00
Per Inge Mathisen a895e1abe0 Revert tiny part of r2488 which causes strange offset problems on the map due
to rounding differences between division and bit shifting on negative values.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2504 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 19:29:28 +00:00
Per Inge Mathisen 91833ef2ec Silence debug warning accidentially made too loud
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2503 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 18:48:58 +00:00
Per Inge Mathisen ba3534485b Change calculation of texture coordinate steps from requiring that the number
of tiles adds up exactly to size of texture in display code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2501 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 16:22:55 +00:00
Per Inge Mathisen ba8f8ba34d Change texture size and texture coordinate calculations so that they no longer
assume that textures match exactly into texture page.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2500 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 16:00:31 +00:00
Roman C 46b2ee2b52 - removed a scripting function that is no longer used
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2499 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:18:05 +00:00
Roman C 5a5d16a8a4 - fixed a bug that would prevent AIs from building certain types of cyborgs, since some of their components were not available
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2497 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:14:11 +00:00
Roman C 8d7c7810ec Scripting engine update:
- some functions dealing with structure quantity at some location now additionally take a boolean which indicates whether half-built structures should be ignored (stock AI is updated accordingly)
- added sqrt() and exp() functions
- added friendlyWeapObjCostInRange() function to calculate cost of friendly units within a certain range
- CALL_RESEARCHCOMPLETED now additionally returns structure that has completed research and its owner

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2495 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:04:25 +00:00
Per Inge Mathisen c89853b636 Make map_coord() and world_coord() take and return signed values. This
fixes a problem that occurs when texture pages are larger than default.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2494 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 14:42:52 +00:00
Roman C e5f977e0f1 Scripting engine:
-increased possible length of a macro name

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2493 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 14:41:46 +00:00
Dennis Schridde 009d388338 Fix wrong replacement of "Warzone 2100" with "${PACKAGE_NAME}".
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2492 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 14:10:43 +00:00
Giel van Schijndel 75f820d1b1 * Replace the last of "<< TILE_SHIFT" and ">> TILE_SHIFT" usage with world_coord and map_coord respectively
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2490 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 19:25:21 +00:00
Giel van Schijndel d5d3175f86 git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2489 4a71c877-e1ca-e34f-864e-861f7616d084 2007-09-28 17:39:33 +00:00
Giel van Schijndel b0500a1a99 * Replace a large mount of "<< TILE_SHIFT" and ">> TILE_SHIFT" usage with world_coord and map_coord respectively
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2488 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 16:51:15 +00:00
Giel van Schijndel beb24f3d10 * Replace macro function CLIP_WORLD_OFFMAP with static inline function clip_world_offmap
* Add a Doxygen header to this function

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2487 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 15:11:58 +00:00
Dennis Schridde 930396af83 Remove no longer needed m4 macros. Depends on r2485!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2486 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 13:46:46 +00:00
Dennis Schridde 4c2954bdd4 - Require Ogg/Vorbis. If you rely on Warzone having no sound support please report back!
- Use pkgconfig where possible (sdl, png, ogg/vorbis). Removes m4 file dependencies, tests are faster. If this is a problem for you: Tell me!
- Check against SDL_net using AC_CHECK_* instead of custom m4 macro. Before not much more was tested anyway.
- Enormously simplify OpenGL/OpenAL checks. Functionality should be the same. More diverse error messages. pkgconfig-style LIBS definition.
- Define DATADIR/LOCALEDIR via config.h instead of via CFLAGS. Should move them into dependency checks.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2485 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 13:34:23 +00:00
Dennis Schridde 087c433997 Bump pofiles.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2484 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-28 13:22:21 +00:00
Roman C fa7866beba Fixed actionCalcPullBackPoint() that was generating off-map coords. Used to be one of the reasons for the "fpathRoute: target coords off map" assert in fpathRoute().
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2483 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-27 13:00:38 +00:00
Roman C 6daca4513a Fixed a C99-style for loop.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2482 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-27 12:23:23 +00:00
Giel van Schijndel 97192c00cb * Fix wrong indentation style used in r2480
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2481 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 20:57:06 +00:00
Giel van Schijndel a8bfacf6ed * Rename iV_DrawText to iV_DrawTextRotated and create a static inline function iV_DrawText which calls iV_DrawTextRotated with rotation=0.f
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2480 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 20:40:56 +00:00
Giel van Schijndel 1d877d50cd * Mark some strings for translation by GNU Gettext
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2479 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 20:21:18 +00:00
Giel van Schijndel f2ed173848 * Get rid of some duplication in string declaration (difference between DEBUG and Non-DEBUG builds); use preprocessor string concatenation instead
* Don't use a magic number (-1), but a named value instead: PIE_TEXT_WHITE

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2478 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 20:19:55 +00:00
Giel van Schijndel 470ea85417 * Remove lib/framework/utf8.c[ch] as we don't need it just right now (we can always revert this commit later on if necessary)
* This commit removes utf8.[ch] from all build systems (manual text-editing for the most of them)
 * For the removal from the XCode project I just reverted r2288

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2477 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 19:46:10 +00:00
Giel van Schijndel d57ffdccd6 * Fix rather annoying different indentation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2476 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 19:13:37 +00:00
Giel van Schijndel aaf2a42747 * Synchronize raw Makefile system with changes to NSIS file in r2466
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2475 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 16:11:24 +00:00
Roman C de47062749 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2474 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 13:48:32 +00:00
Roman C ab81e57255 Fixed bug #8690, patch by Pallas.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2473 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 13:33:45 +00:00
Per Inge Mathisen a590c7e36d Fix one-off counting error in assert checking of droid lists.
Patch and bug report by Martin Koller.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2472 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 21:04:44 +00:00
Giel van Schijndel f99cd3e326 * Fix Code::Blocks object output directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2471 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:34:03 +00:00
Giel van Schijndel 244842406c * Add dual platform support to Code::Blocks project file (now supports both Linux and Windows, requires a rather recent version of Code::Blocks though)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2470 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:16:58 +00:00
Giel van Schijndel 33b5764611 * Rename winmain.h to main.h since all it's forward declarations refer to main.c and having nothing whatsoever to do with MSWin
* Remove forward declaration of "BOOL frontendInitialised" since it is nowhere defined

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2469 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 18:16:10 +00:00
Giel van Schijndel ebe882625f * Fix doxygen comment
* Fix indentation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2468 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-23 21:43:57 +00:00
Dennis Schridde f9713037a6 Patch tr-de-t9n-r2448-v2.diff submited by Thomas Rösner in patch #795.
Parts were rejected by GNU patch and have to reviewed again.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2467 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-23 17:29:34 +00:00
Dennis Schridde 48b785df17 - Use more defines in nsis script
- Actually define the used defines
- Fix uninstall order
- Fix nls file references


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2466 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-22 21:47:22 +00:00
Dennis Schridde cab88a8a7d - Make "make -C data data" recursively build mods as well. SUBDIRS is apparently ignored for target!=all.
- Add ABOUT-NLS, which is apparently required by gettext. (Copied from gettext-0.16.1)
- Update po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2465 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-22 11:45:49 +00:00
Dennis Schridde dba5fa6408 More formating and structural parts from Freddie's netprimitives14.patch
- Addition by me: Add NET_ORDER_SUBTYPE enum, which stores the targettype of movement orders and turn associated checks into switches for safety. (Original code had hardcoded numbers and if chains.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2464 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-22 01:15:40 +00:00
Dennis Schridde 47dc79ee1e Formating to match EvilGuru's current version. (14)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2463 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-21 20:43:15 +00:00