Cyp
c307435927
win32: Add extern "C", in case it helps.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9305 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:15 +01:00
Cyp
deb4a10401
make/win32: Add pointtree.cpp, since it's probably hard to link without that one, too.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9304 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:15 +01:00
Cyp
b1264d7e24
make/win32: Update mapgrid.c to mapgrid.cpp, apparently this makefile isn't autogenerated.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9303 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:14 +01:00
dak180
73ba2e11e0
Better version numbers and kill some warnings.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9301 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:14 +01:00
Guangcong Luo
95d8e79161
Fix typo in r9297/r9298.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9299 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:14 +01:00
Guangcong Luo
ada08d0040
Fix bug #1418 - transports can be controlled sometimes.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9298 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:14 +01:00
Cyp
ffa10c5113
make: Don't give make errors when switching between trunk and branches, even with out of tree builds.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9296 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:14 +01:00
Guangcong Luo
9568ac7987
Close ticket #1134 - add radar blips for events such as "structure under attack"
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9293 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:13 +01:00
Guangcong Luo
2025407222
Commit mod list patch #1415 :
...
1. Adds a specific autoload folder, `mods/autoload/`. This is essential for a good mod community.
2. Searches the `mods/` folder for global mods, as well as `mods/global/`. This is the first step in merging the three mod folders together, but I'm not planning on merging them completely in 2.3.
3. Constructs a list of loaded mods, and displays the list in the VersionString (including the list of games in the lobby).
4. Grays out games with incompatible mods in the NetPlay game list, and gives a warning in the tooltip: "Your loaded mods are incompatible with this game. (Check mods/autoload/?)"
5. Gives a warning when a game with an incompatible mod is clicked: "You have an incompatible mod."
6. Displays a list of mods above the Warzone logo.
7. Lists mods in hosting screen, and warns hosts that all players need the same mods loaded.
Closes ticket:1415.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9291 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:13 +01:00
Cyp
809098735d
make: Don't give make errors when switching between branches.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9286 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:13 +01:00
Per Inge Mathisen
a8a2bcb161
Fix --selftest. Had to comment out the sound test for now.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9282 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:13 +01:00
Per Inge Mathisen
06f8f2588d
Add ai.slo to POTFILES.in
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9281 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:13 +01:00
Guangcong Luo
b5471fc186
Calculate gameTime2 using the correct time offset (fixes strange animations on some nonstandard game speeds).
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9279 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:12 +01:00
Cyp
1a99e9038b
visibility.c: Increase query range, since objects are looking for things to be looked at by. That didn't make sense, but neither does the function.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9278 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:12 +01:00
Guangcong Luo
a341785d23
In aiUpdateDroid - Move on to the next target if current target is probably doomed.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9276 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:12 +01:00
dak180
6033e63f0b
Update the xcode file to work with Cyp's new code.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9275 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:12 +01:00
Cyp
eb7aa25d51
pointtree: Use ULL postfix on 64-bit integers, so it compiles with -m32.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9274 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:11 +01:00
Guangcong Luo
f73d44e982
Make the Tab "hide interface" keyboard shortcut hide the entire interface.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9272 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:11 +01:00
Cyp
18fb0f81cb
visibility.c: Reduce query range to sensorRange (now that queries have variable range).
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9271 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:11 +01:00
Christian Ohm
60c4f603da
Use the configured game port instead of hardcoding it.
...
Also make the port variables static.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9269 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:11 +01:00
Guangcong Luo
bf1541a626
Fix typo in gtime.c
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9266 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:11 +01:00
Cyp
b4919db163
pointtree: Remove grid system calls which are no longer used.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9265 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:10 +01:00
Cyp
97e852b5ec
pointtree: Eliminate all traces of "naybor".
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9264 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:10 +01:00
Cyp
2f62c98240
pointtree: Remove "naybor" from projectiles.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9263 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:10 +01:00
Cyp
78389d6bb2
pointtree: Remove "naybor" from droids.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9262 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:10 +01:00
Cyp
d6d0070530
pointtree: Kill mapgrid.c. Reincarnate as mapgrid.cpp, using the new PointTree.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9261 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:10 +01:00
Cyp
5c9585e8cb
pointtree: Find points quickly.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9260 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:09 +01:00
Guangcong Luo
5da6588fb0
Initialize timeOffset correctly.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9258 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:09 +01:00
Guangcong Luo
dabc178157
Some hacks to paper over the time travel bug.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9257 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:09 +01:00
Guangcong Luo
1f20309350
Fix design form not updating sometimes.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9256 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:08 +01:00
Guangcong Luo
103dd4feec
DORDER_TEMP_HOLD counts as doing nothing for the purposes of aiUpdateDroid.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9253 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:08 +01:00
Guangcong Luo
cf8265e6c8
An assert to figure out why time travel is occurring.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9250 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:08 +01:00
Guangcong Luo
3e47b4ac89
Commit Safety0ff's audio fix.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9249 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:08 +01:00
Guangcong Luo
bd1a8d1e9d
Always clear selection when units are assigned to a sensor.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9247 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:08 +01:00
dak180
fbd7ba368a
More search path changes.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9244 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Per Inge Mathisen
423ac3df4f
Use chained events instead of relying on a 40 second repeat trigger for research. This
...
makes the AI much faster at researching, as it eliminates long delays. Also clean up
the base expansion code and make it stop trying to expand when out of power.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9243 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Per Inge Mathisen
7a9bd0c47b
Make sure AI triggers get sent when we receive research from allies. Update GUI properly
...
also when AI is in control for easier debugging. Make allied AIs not research the same techs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9242 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Per Inge Mathisen
1015c07cac
I forgot one debug line in the previous commit. Oops.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9241 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Per Inge Mathisen
2f5eb36268
Clean up 'work harder' cheat handling so that it does not confuse AI scripts.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9240 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Per Inge Mathisen
a9ba027836
Remove some dead code
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9239 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
Per Inge Mathisen
ceed2c4ce1
Clean up definitions
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9238 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
dak180
a0af4638af
Try to make "Copy game data" faster.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9235 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
Guangcong Luo
2a897bca0a
Make sure aiDroidHasRange actually returns a boolean representing whether or not the droid has range.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9234 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
Guangcong Luo
a2bcabeb13
Remove DORDER_TEMP_HOLD from the list of location-type orders, because it's not a location-type order. Fixes the problem of TEMP_HOLD not working in trunk.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9232 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
Cyp
d9e59c6971
retarget: Zero expected damage after damage is done.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9230 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:06 +01:00
Cyp
7f3e826615
retarget: Don't all target the same cyborg.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9229 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:04 +01:00
Cyp
16224760e3
raytrace: Better collision detection.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9227 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:04 +01:00
Christian Ohm
b78de9420b
Update translations.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9222 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:03 +01:00
Christian Ohm
df7b9dff0c
Add Mac project files to make dist.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9221 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:02 +01:00
Christian Ohm
e9396eb168
Use a somewhat more modern tar format for make dist.
...
Allows filenames over 99 characters!
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9220 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:02 +01:00