Richard Harrison
cbb7915e49
Ensure to break out of the loop when an unrecognised incoming MP property id is encountered in a packet.
2017-02-16 18:30:17 +01:00
Richard Harrison
11778f595f
Fixed exception caused when next is equal to end()
...
This happened whilst running under debug whilst spawning at a new location so it may be an edge case, but still worth checking for
2017-02-16 18:29:44 +01:00
Richard Harrison
bde3dd0644
Canvas texture replacement visitor compiler fix.
...
Change to use pointers rather than osg::ref_ptr<osg::Group> - based on http://andesengineering.com/OSG_ProducerArticles/RefPointers/RefPointers I think that it is not possible that the scenegraph can be modified between the visitor and the modify, provided that the methods are called after each other like this:
ReplaceStaticTextureVisitor visitor(name, new_texture);
branch->accept(visitor);
visitor.modify_groups();
return visitor.getPlacements();
2017-02-16 09:16:27 +01:00
Richard Harrison
e48a3d8b32
Replacement Texture visitor modified iterator whilst iterating
...
The visitor would modify the scenegraph during the traversal by inserting groups; this is not valid when using vectors, and MSVC2015 debug RTL throws an exception when this happens.
The fix is to simply make a list of the textures that need to be modified and modify once the scenegraph traversal has finished.
2017-02-14 18:56:38 +01:00
Richard Harrison
fa142c9464
Change log level for "prepare_ground_cache(): scenery_available returns false" message as the message occurs at a high rate and seems to be more suited at bulk rather than warn level
2017-02-14 16:08:05 +01:00
Richard Harrison
275d73d01f
Multiplay: Improve log message handling for win32.
2017-02-14 16:08:04 +01:00
Florent Rougon
8f24de831d
Adapt includes according to relocation of SimGear's iostreams-related files
...
This change is the logical counterpart of SimGear's change from commit
79f869a7f32910197be72b21f6489fbbba02c836 that moved the following files
from simgear/misc to simgear/io/iostreams:
gzcontainerfile.cxx
gzcontainerfile.hxx
gzfstream.cxx (formerly zfstream.cxx)
gzfstream.hxx (formerly zfstream.hxx)
sgstream.cxx
sgstream.hxx
sgstream_test.cxx
2017-02-12 21:30:51 +01:00
James Turner
a83947edbf
Basic validation of added scenery paths.
...
Try to catch uses adding parent directories and hence missing
scenery.
2017-02-10 23:04:00 +00:00
James Turner
d05b934702
Revert "Fixes for HUD, model-manager listeners."
...
This reverts commit 831053bd04
.
See if this fixes the problem deleting models which Denk reported.
2017-02-02 17:02:39 +01:00
Erik Hofman
05b2b6536b
Make use of the Vector new interpolation function
2017-02-02 11:35:55 +01:00
James Turner
0f3659818b
QtInfoMsg requires Qt 5.5
2017-02-01 17:36:48 +01:00
James Turner
8f7c0d6801
Scenery extraction: set progress text
...
Fixes bug:https://sourceforge.net/p/flightgear/codetickets/1938/
2017-01-31 17:11:44 +01:00
Richard Harrison
0bf80f9b2a
Add protection to the multiplayer (AI) interpolation to protect against segfaults when the previous and next packets contain different properties.
2017-01-30 23:25:00 +01:00
Erik Hofman
e39eac8a6d
Nicer, human readanle, stack trace output
2017-01-30 15:58:09 +01:00
Erik Hofman
57dc778565
Fix a last minute typo
2017-01-30 12:31:05 +01:00
Erik Hofman
182f758eb7
Add a segmentation-fault report for Linux and Apple
2017-01-30 12:29:51 +01:00
James Turner
5d27d2509f
Add “—-log-file” option, to log to other locations.
...
Each argument creates another log file, in the directory named. Symbolic
value ‘desktop’ creates logs on the user’s desktop.
Needs corresponding SimGear commit to build
2017-01-30 08:01:20 +01:00
James Turner
658074f78e
Map Qt log to the Simgear log.
2017-01-30 08:01:20 +01:00
Erik Hofman
7133bc5c0f
Make MSVC happy
2017-01-30 00:41:27 +01:00
Erik Hofman
ebfadb908c
Make sure the AISim code compiles with the latest SIMD code changes in simgear
2017-01-29 15:27:41 +01:00
Rebecca N. Palmer
2b1336cd39
clear GroundLightManager also on non-standard exits to avoid crash
...
(e.g. --show-aircraft,
https://sourceforge.net/p/flightgear/codetickets/1935/ )
2017-01-28 23:07:23 +00:00
James Turner
d343496084
Check nav-cache write-ability explicitly.
...
Check the file permissions before opening using the new SGPath APIs,
and validate the result using Sqlite APIs after opening.
2017-01-28 16:05:18 +00:00
James Turner
8472f8c6d0
Fix positional ordering of remote-canvas elements.
...
The mirror protocol now sends the position for internal as well as
leaf nodes, and the group uses this data to sort when no explicit
Z-indices exist. This gets the extra-500 much closer to working!
2017-01-26 23:14:48 +00:00
James Turner
c9f922ce1b
Expose node position over property-mirror protocol.
2017-01-26 20:36:07 +00:00
Viktor Radnai
a26a5d741b
Make wheels spin down slowly once off the ground
2017-01-26 20:36:07 +00:00
Erik Hofman
1a0537e493
Silence a few compiler warnings
2017-01-26 15:37:43 +01:00
James Turner
70e79a849e
Tweak launcher to be a MainWindow
...
For unknown reasons this seems to alleviate the word-wrap / min-height
bug on Windows. Committing so we can test and verify this is really
the case before the next release.
2017-01-26 00:38:19 +00:00
James Turner
fb1a29200a
Merge /u/setvisible/flightgear/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/72/
2017-01-25 23:36:52 +00:00
James Turner
0fe14f7c36
Use enable-hot flag in model manager.
...
Allow control of the terrain flag on models added via the model
manager at runtime.
Designed and requested by Henning Stahlke
2017-01-25 22:19:15 +00:00
James Turner
a0f2726a39
Set default airport/aircraft in the launcher.
...
Parse the defaults file to set the desired default aircraft and
airport when no previous state exists.
Fixes:
https://sourceforge.net/p/flightgear/codetickets/1936/
2017-01-25 20:41:40 +00:00
setvisible
7d02ffecab
Changed aircraft list's scrolling policy to *ScroolPerPixels*, because items have non-regular height.
2017-01-25 18:40:40 +01:00
setvisible
928567650f
Added the missing FG icons to the Qt dialogs
2017-01-25 18:18:11 +01:00
Torsten Dreyer
1f9ece8303
Location preset for ENBR (2017.1)
2017-01-25 14:00:06 +01:00
James Turner
6311e1ad24
Merge /u/setvisible/flightgear/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/70/
2017-01-23 09:16:21 +00:00
Stuart Buchanan
dab9a9fc73
Remove /sim/rendering/building-mesh.
...
Made redundant by /sim/rendering/scenery-path-suffix
2017-01-21 22:22:43 +00:00
martymac
ffc7ad6cdf
Fix build with Clang 4.0.0.
...
Those patches fix errors related to ordered comparisons between pointers and
integers, such as the ones related here on FreeBSD :
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216203
2017-01-21 21:32:50 +00:00
setvisible
5ce85c2248
fixed the missing FG icon (QtLauncher's mainwindow)
2017-01-21 19:23:21 +01:00
James Turner
8472a8c38a
Launcher smoothly scales thumbnails.
...
Was accidentally using nearest, not linear, interpolation when
resizing thumbnails. Very pixels. Much ugly.
2017-01-17 22:18:35 +00:00
Erik Hofman
404fad4254
MSVC fix
2017-01-15 09:26:34 +01:00
Erik Hofman
9f9f1c631f
Add the latest code for reference in the JSBSim mailing list while bug hunting
2017-01-14 14:33:28 +01:00
Erik Hofman
1ef1d5ad43
Fix a potential segmentation fault and turn it into a harmless message.
2017-01-14 10:37:42 +01:00
Erik Hofman
ed4a9337d9
Fade in the sound exponentially at startup
2017-01-12 15:06:04 +01:00
James Turner
88fc98f57b
Mcc build fix for JSBsim executable.
2017-01-12 12:30:43 +00:00
Geoff McLane
52572ef1f3
Add back a JSBSim.exe build, install
2017-01-12 12:30:42 +00:00
Geoff McLane
c7391668e6
To build JSBSim, add copy from jsbsim-code repo
2017-01-12 12:30:42 +00:00
Erik Hofman
f54e03d7c6
Merge branch 'next' of ssh://git.code.sf.net/p/flightgear/flightgear into next
2017-01-12 11:45:08 +01:00
Erik Hofman
9f6422b5e2
only start the sounds when the soundmanager becomes active
2017-01-12 11:44:53 +01:00
James Turner
78498c560d
Rename preferences.xml -> defaults.xml
...
Requires FGData commit: 0565eaab10a5d466cd485766b17d1870936a0a57
(which actually renames the file).
Also disables the preferences-load command since I don’t believe it
would actually be safe to reload the defaults without doing a simulator
reset (aircraft -set.xml values would be overwritten, for example)
2017-01-12 09:45:19 +00:00
Erik Hofman
2098593531
Do not proceed in update() until is_active() returns true
2017-01-11 15:14:08 +01:00
James Turner
ac8fb6fd24
Add some additional check to NavCache opening.
...
Hoping to capture why opening the DB read-write fails in some cases
on Windows.
2017-01-10 10:44:18 +00:00