Cyp
322bbc6163
Remove REPAIR_FACILITY::{timeStarted, currentPtsAdded}.
2011-12-12 17:01:31 +01:00
Cyp
4b355aa060
Remove RESEARCH_FACILITY::timeStarted, don't finish research when cancelling it.
...
Fixes ticket:2977.
2011-12-12 12:04:15 +01:00
Cyp
295be0e273
Fix desynch when melting scavengers.
...
Droid animations should not affect game state...
Even if you're melting scavengers with lasers or bombs.
2011-12-12 11:07:08 +01:00
Cyp
85974cab80
Wait 300ms before displaying map preview, for less flashiness.
2011-12-12 01:39:30 +01:00
Per Inge Mathisen
53beded902
Handle corrupt savegames with bad gateway info more gracefully. Closes ticket:2974
2011-12-11 23:03:51 +01:00
cybersphinx
fec056d409
Change subtitle timing from frames to seconds.
...
Based on patches by Emdek and Beliar. Closes #748 .
2011-12-11 20:13:01 +01:00
cybersphinx
8d309f5b22
Remove some unneeded code.
...
Found by clang's analyzer. Closes #2970 .
2011-12-11 18:12:21 +01:00
Cyp
e50368114d
Allow multiple logical updates per rendered frame.
...
Allows maintaining game speed when the GPU can't keep up.
2011-12-11 16:10:05 +01:00
Cyp
74261ad652
Split gameLoop() into renderLoop() and gameStateUpdate().
2011-12-11 15:48:46 +01:00
Cyp
829fc68ea0
Remove useless floats from visibility.cpp.
...
Probably couldn't break synch, since all floats always contained exactly representable integers.
2011-12-11 13:37:56 +01:00
Per Inge Mathisen
db2feed5f6
Fix problem with saving due to QSettings not believing that files were writable
...
unless they were created beforehand. This is an ugly hack.
2011-12-11 01:11:48 +01:00
cybersphinx
075e18828c
German translation update by Raymond and Kreuvf.
...
Closes #2967 .
2011-12-10 21:48:21 +01:00
Cyp
6993b16c2c
Shutdown dangerThreadFunc() on closing program.
...
Valgrind appeared to be warning about a bad free() in _vgnU_freeres(), but the warning appears anyway with a different stack trace, possibly a valgrind bug.
2011-12-09 16:14:09 +01:00
Cyp
23475069a9
Use repair delivery point when plonking down droids in debug mode, and squelch valgrind uninitialised warning.
...
Flipping !psPosition->selected && !blueprint to !blueprint && !psPosition->selected helps since blueprint ← true and psPosition->selected ← uninitialised.
==28422== Conditional jump or move depends on uninitialised value(s)
==28422== at 0x494CCC: renderDeliveryPoint(FLAG_POSITION*, bool) (display3d.cpp:2489)
==28422== by 0x496F0D: _ZL9drawTilesP5iView.clone.53 (display3d.cpp:1622)
==28422== by 0x496FAC: draw3DScene() (display3d.cpp:851)
==28422== by 0x49BD30: displayWorld() (display.cpp:1358)
==28422== by 0x50DEE6: gameLoop() (loop.cpp:614)
==28422== by 0x50FBDC: mainLoop() (main.cpp:907)
==28422== by 0x62EEDA: WzMainWindow::paintGL() (wzapp.cpp:264)
==28422== by 0x6D5A0EF: QGLWidget::glDraw() (qgl.cpp:4483)
==28422== by 0x6D58E38: QGLWidget::paintEvent(QPaintEvent*) (qgl.cpp:4281)
==28422== by 0x723D40C: QWidget::event(QEvent*) (qwidget.cpp:8405)
==28422== by 0x6D62580: QGLWidget::event(QEvent*) (qgl.cpp:4264)
==28422== by 0x71E78DB: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4462)
==28422== Uninitialised value was created by a stack allocation
==28422== at 0x4960DF: _ZL9drawTilesP5iView.clone.53 (display3d.cpp:918)
2011-12-09 14:43:18 +01:00
Cyp
83af945516
Fix assertion spam on ordering a group containing some non-trucks to build something.
...
info |12:05:14: [orderDroidBase] Mini-Rocket Array Viper Hover cannot construct things!
info |12:05:14: [orderDroidBase] Assert in Warzone: ../../src/order.cpp:1563 (isConstructionDroid(psDroid)), last script event: 'N/A'
2011-12-09 13:49:11 +01:00
Cyp
b62e7d3358
Use correct colour for scavengers in map preview.
2011-12-09 13:32:50 +01:00
Cyp
d1e2f1a2cb
Fix crash on opening empty production menu after loading savegame containing commander templates.
...
Introduced in 9474ae3715
.
Fixes ticket:2968.
2011-12-08 20:40:14 +01:00
Cyp
4bf70ca7c5
Fix remaining progress bar after research.
...
Was a missing popStatusPending().
Fixes ticket:2966.
2011-12-08 13:13:26 +01:00
Cyp
0aeda2baa2
Use version_getVersionString() for net version.
...
Since any change that affects game state breaks synchronisation, and most changes
break synch, and it's not convenient for most commits to bump the version in
netplay.cpp, it's probably a good idea to announce the exact version when hosting.
2011-12-08 12:36:24 +01:00
Cyp
5461ef45bd
Reorder GAME_* messages.
...
The GAME_* messages should now be better sorted by whether or not they are useful.
2011-12-08 12:04:37 +01:00
Per Inge Mathisen
07c5c958bd
Remove dead function. getDerrick() is now unnecessary that we have all this info
...
available from global.
2011-12-07 22:22:02 +01:00
Per Inge Mathisen
5e7bb703e2
Remove two excess log calls
2011-12-07 21:24:06 +01:00
Per Inge Mathisen
247b8b2b49
qtscript: Functions for enumerating features and ordering droids to do things to objects.
...
Add access to structure types.
2011-12-07 00:28:03 +01:00
Per Inge Mathisen
034c1d7c4b
Add beginnings of a port of semperfi to javascript
2011-12-06 20:51:38 +01:00
Per Inge Mathisen
58d5bd4161
Add new qtscript functions for AI implementatation. The pick build position
...
function was ported pretty much as is from wzscript implementation, hence
its ugliness.
2011-12-06 20:51:38 +01:00
cybersphinx
ae130a7a3f
Readd audio confirmation for trucks.
...
Got lost in ab3a8adf38
. Closes #2948 .
2011-12-06 17:45:04 +01:00
Cyp
93a6d7ba74
Fix loading of droids in transporters.
...
Hopefully fixes ticket:2889 and ticket:2959, but does not handle the corrupted savegame in ticket:2959, which has duplicate droids in droid.ini and mdroid.ini.
2011-12-06 17:37:10 +01:00
Cyp
2d4e1e1314
Fix missing visibility on game start.
...
Introduced in a74281b3b5
.
Fixes ticket:2964.
2011-12-06 17:37:10 +01:00
cybersphinx
820e38bab1
Use large font for the loadsave dialog header.
...
Closes #2929 .
2011-12-06 16:39:35 +01:00
cybersphinx
9ea22074d1
Turkish translation update by Ayhan Görgülü.
...
Closes #2963 .
2011-12-06 15:55:07 +01:00
Cyp
5c2cf9fa06
Make UI respond instantly when holding/cancelling production/research.
2011-12-05 14:22:18 +01:00
Cyp
a35ff1e8fe
Fix crash due to transporter trying to unload itself from itself when clicking fast.
...
Unloading single droids from transporters should now be more responsive, too.
2011-12-05 11:23:47 +01:00
cybersphinx
0811be2b7d
Update ChangeLog.
2011-12-04 23:26:35 +01:00
cybersphinx
0d75a3b629
Properly show delivery point numbers again.
...
Original patch by Safety0ff, closes #2497 .
2011-12-04 23:23:28 +01:00
Cyp
a74281b3b5
Wait for pathfinding to finish, when loading droids, and improve bad droid position handling.
2011-12-04 23:03:03 +01:00
Cyp
a58591d74c
Add debugBacktrace() for easier debugging.
2011-12-04 23:03:03 +01:00
dak180
e5d7318b0c
Speed boosts (for the mac build times).
...
Also PBXBuildRules simplification.
2011-12-04 14:23:43 -05:00
Cyp
48eda8df50
Preview maps when hovering over them.
2011-12-04 11:09:48 +01:00
Cyp
5718af7bd7
Show preview of the right map, in single-player skirmish.
2011-12-04 09:38:34 +01:00
cybersphinx
695fe5fbd2
Update translations.
2011-12-03 19:47:58 +01:00
Cyp
f2ff7ead52
Fix desynch on deleting templates.
...
Introduced in 9474ae3715
2011-12-03 19:20:29 +01:00
Per Inge Mathisen
a0f13ff73e
Fix error using uninitialized variable if error was detected, when trying to report said error. Error in error reporting reported by Cyp.
2011-12-03 19:13:39 +01:00
Per Inge Mathisen
482600d10a
Add some more logging to debug problems with building placements in scripts
2011-12-03 18:47:37 +01:00
Per Inge Mathisen
5885b05129
Add comment to explain why structures are sometimes drawn as blips
2011-12-03 18:35:39 +01:00
Cyp
33ab0461bd
Magically fix weird random lighting with -Os and g++-4.5.3.
...
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51392
2011-12-03 11:17:06 +01:00
Cyp
9474ae3715
Reduce dependence on MAX_FACTORY.
...
Fixes some assertions on some maps.
2011-12-03 11:15:32 +01:00
dak180
8ee9e6747e
Change The copyright dates that get displayed.
2011-12-02 16:04:04 -05:00
cybersphinx
7649bfe276
Fix make aborting when wkhtml is not found.
...
Patch by cazfi. Closes #2956 .
2011-12-02 21:59:26 +01:00
Cyp
7e19420a7d
Add early out for inQuad.
2011-12-02 17:48:00 +01:00
Per Inge Mathisen
b1fec2e8ad
Remove assert failures if templates do not have string names.
2011-12-02 16:43:42 +01:00