Commit Graph

3333 Commits (b1b2859ea3e58a403e1d405b694284dc81b172e5)

Author SHA1 Message Date
Dennis Schridde b1b2859ea3 New enum TEXPAGE_TYPE, to better control disabling/enabling of texturing. (Changed pie_SetTexturePage accordingly.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4202 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:34:30 +00:00
Giel van Schijndel 9895df559d Make widgCreateScreen return the screen it created or NULL on failure
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4200 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:42 +00:00
Giel van Schijndel 3ed3acd891 Clean up formCreate and widgAddForm:
* Make formCreate and widgAddForm take their psInit parameters as const
 * Make formCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4199 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:36 +00:00
Giel van Schijndel 86ca2b5f06 Clean up editBoxCreate and widgAddEditBox:
* Make editBoxCreate and widgAddEditBox take their psInit parameters as const
 * Make editBoxCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4198 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:30 +00:00
Giel van Schijndel 6ea7968f46 Clean up labelCreate and widgAddLabel:
* Make labelCreate and widgAddLabel take their psInit parameters as const
 * Make labelCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4197 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:20 +00:00
Giel van Schijndel 7e6e7d8b1f Clean up buttonCreate and widgAddButton:
* Make buttonCreate and widgAddButton take their psInit parameters as const
 * Make buttonCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4196 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:15 +00:00
Giel van Schijndel a4987cfefb Clean up barGraphCreate and widgAddBarGraph:
* Make barGraphCreate and widgAddBarGraph take their psInit parameters as const
 * Make barGraphCreate return the bar it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4195 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:05 +00:00
Giel van Schijndel cd8365fb01 Cleanup of widgRunScreen
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4194 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:21:53 +00:00
Giel van Schijndel 20448076bf Revert part of r4184:
* Don't use abort() as it'll be triggered in non-debug builds as well, so stick with the ASSERT(FALSE, ...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4192 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 13:23:35 +00:00
Giel van Schijndel d5e31eb751 Make sliderCreate return a pointer to its created slider and NULL on failure
Const correctness:
 * make sliderCreate and widgAddSlider take its psInit pointers as const


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4185 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 11:47:23 +00:00
Giel van Schijndel dd02289a5e Clean up sliderCreate and widgAddSlider
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4184 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 11:47:19 +00:00
Giel van Schijndel 95d8cddc61 remove data/mods/global/aivolution/installation.txt from the raw makefiles and autotools buildsystem (to complement r4156)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4181 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 19:34:09 +00:00
Roman C 827cd6e350 Cosmetic changes: fixed some whitespaces.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4179 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:48:18 +00:00
Roman C dabd096fd5 Buginator is concerned about my commit log record, so..:
A better fix to the ctrl-o menu bug: don't check for NULL in two different places.

Patch by Buginator.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4177 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:42:19 +00:00
Roman C 279230ca8c Add some additional checks to unit production functions.
Patch by Buginator.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4175 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:29:16 +00:00
Roman C 04cf4c0260 Fix ctrl-o menu crash. Patch by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4173 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 18:17:00 +00:00
Giel van Schijndel 32b5a38e53 * Remove function addSlideOptions which only forwarded its function call to _addSlideOptions
* Rename _addSlideOptions to addSlideOptions


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4172 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 16:35:26 +00:00
Per Inge Mathisen ab69397e08 Parts of patch #730: movement patch by Watermelon, with changes by me, to clean
up path finding distance calculation.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4171 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 16:03:58 +00:00
Per Inge Mathisen 798e1aed22 Lower default terrain texture size to 64 to be nicer to people with worse hardware.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4170 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 16:01:28 +00:00
Per Inge Mathisen f6743c23d2 Add hack to prevent droids from being stuck because path-finding does not
understand that very steep slopes cannot be crossed, and these slopes were 
not properly marked as cliffs in the map. Now droids can climb even the
steepest slope if not marked impassable, although slowly. This is the lesser 
evil (compared to getting stuck droids), since stuck AI droids will clog up 
path-finding for everyone.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4167 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 15:50:28 +00:00
Roman C e3130c9c96 Aivolution: fixed swapped actual parameters for the first and second parameter of a function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4166 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 15:44:14 +00:00
Per Inge Mathisen fe2ff84ed3 Fix bug #11216: When a tooltip is shown, the sky vanishes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4164 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 14:59:33 +00:00
Per Inge Mathisen 74cf21ef6d Patch #980 by Buginator: Remove some faster/slower options when not
in debug mode to prevent various bugs that may appear in them.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4162 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 14:32:10 +00:00
Per Inge Mathisen 9a57ec77f6 Add new debug command to display droid paths for selected droids on the map.
The default key combo is LCTRL + m. You need to delete your keymap file again.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4161 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 13:40:34 +00:00
Roman C d334213174 Aivolution:
wait some time before notifying allies of an idle state to prevent too rapid state changes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4160 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 01:11:58 +00:00
Roman C 3e615ea55f Add a missing definition of a flex symbol.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4159 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-20 01:09:52 +00:00
Roman C cfea441525 Aivolution AI:
-AI became more talkative
-more phrases can be recognized and used as commands
-cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4158 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-19 21:02:03 +00:00
Roman C 53ccf20390 Fix Aivolution readmes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4156 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-19 19:04:19 +00:00
Roman C 81de4a1622 Fix a commander-related crash.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4155 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-19 15:58:36 +00:00
Roman C d2d6f60852 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4153 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 23:34:35 +00:00
Roman C 64f4a2d593 Aivolution AI:
-don't offer to attack enemies on startup, if AIV has no units
-use player names instead of player numbers in the chat

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4151 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 22:18:48 +00:00
Roman C 30f5916f83 Aivolution AI:
-fixed a bug, which made Aivolution send its units to the initiator of the "go <player>" request instead of the enemy it was supposed to attack.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4149 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 20:14:18 +00:00
Per Inge Mathisen 31d449c8ed patch #981: Fixes factory production to display # units correctly, by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4147 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 12:08:38 +00:00
Per Inge Mathisen ae39f1886a patch #1004: Cleanup featureType by EvilGuru, with modifications.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4146 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 12:02:47 +00:00
Per Inge Mathisen 342a673d08 Add hack to fix droidOnMap asserts when loading some savegames. Reported by
Dale Gill in bug #11298.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4142 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-18 11:10:41 +00:00
Per Inge Mathisen 51d5b30e3e Try another fix for bug #11293 that may work better for networked games.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4139 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 23:05:17 +00:00
Per Inge Mathisen cc70d235ac Do not brutally abort the game if non-debug build encounters wrong build version.
Some cosmetic improvements to other code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4138 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 22:34:36 +00:00
Per Inge Mathisen bee74ccdf1 Fix bug #11293, building limits have no effect, reported by Chris (falcon888).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4137 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 22:33:02 +00:00
Roman C 2e53833a0b Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4135 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 22:01:19 +00:00
Per Inge Mathisen d9e5d4a54b Try to fix bug #11261 with some added basic sanity checking to random gifts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4133 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 21:57:01 +00:00
Roman C 4bfba84e8f Increase effect of the skirmish difficulty modifier slider by 20% to have a greater range of AI difficulty available to chose from.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4132 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 21:55:15 +00:00
Per Inge Mathisen 15511049ca New debug key combo: CTRL+E will toggle display of gateway links. You must
delete your keymap file for this to work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4131 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 20:23:58 +00:00
Roman C 6361fc6cb2 Fixed ChangeLog which had a duplicated line.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4130 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 20:23:46 +00:00
Roman C 4fae2e8699 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4128 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 19:49:40 +00:00
Per Inge Mathisen fd47976f00 Fix smearing in smaller than 64x64 maps.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4126 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 19:47:27 +00:00
Per Inge Mathisen 88a97ca507 Mark a number of strings for translation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4123 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 19:02:31 +00:00
Roman C 6c85b53bc7 Patch #1013 by me, makes radar colors more vivid.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4122 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 18:52:35 +00:00
Roman C f3b464678a Add in-game descriptions for friend-for and player color radar modes (SHIFT+TAB).
NOTE: someone more familiar with gettext might want to add those and the ones from kf_ToggleRadarTerrain() to the .po files.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4121 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 18:48:02 +00:00
Giel van Schijndel ba225be0d0 Update Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4119 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 11:35:24 +00:00
Dennis Schridde 0c5ecc0efb Fix bug #11277: Strings containing non-ascii characters missing
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4118 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-17 07:23:48 +00:00