ThorstenB
88f7c05274
Introduce "PRESERVE" flag to protect properties on sim reset.
...
Some specific properties need protection and shouldn't be restored to their
original values on sim-reset.
2011-06-12 20:31:56 +02:00
ThorstenB
505d4c5219
Do not reset persistent properties on sim-reset.
...
Fixed ugly sim-reset issue: Persistent properties (USERARCHIVE attribute)
are retained across sim sessions (when restarting the sim). So they should
also be retained on sim-resets (without the need to first exit/restart
the sim to make them really persistent).
Also, avoid warning due to read-only properties.
2011-06-12 13:53:14 +02:00
ThorstenB
d767fe1696
Avoid compiler warning.
2011-06-12 13:45:10 +02:00
ThorstenB
ee40e8ae3f
Introduce terrasync subsystem.
...
Fix tile reloading issue.
2011-06-12 00:44:07 +02:00
Torsten Dreyer
bad5fbf66a
Use computed gravity instead of hardcoded value
2011-06-08 20:17:40 +02:00
Torsten Dreyer
f52cf4e3b8
Merge commit 'refs/merge-requests/11' of git://gitorious.org/fg/flightgear into vivian
2011-06-08 20:12:53 +02:00
ThorstenB
db7112c20b
Remove stray space
...
Thanks to Vivian - make MSVC9 happy again.
2011-06-06 19:53:21 +02:00
Vivian Meazza
8b6779aa96
Bugfix: set life timer to 0 on instantiation and when ballistic object dies.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-06-06 09:32:00 +01:00
Mathias Froehlich
d21924770f
Avoid crashing in hla initialization failure.
2011-06-05 13:45:40 +02:00
Erik Hofman
afca14c372
add a sanity check for the overcast property
2011-06-05 10:26:55 +02:00
Erik Hofman
8f3cdc9404
Add a /rendering/scene/overcast option to color the skydome gray in case of overcast
2011-06-05 10:20:16 +02:00
ThorstenB
bc9ffe96c2
Minor error message formatting.
2011-06-04 17:55:37 +02:00
ThorstenB
a2c768c7cd
Fix crash when display/screen number invalid
...
getScreenResolution shouldn't be called before the safety check.
Fixes commit ba7d8b8155
2011-06-04 17:55:12 +02:00
Torsten Dreyer
c9bb9f6044
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-06-04 15:58:54 +02:00
Torsten Dreyer
0774ca000a
Anticipating v2.4.0 - bump fgdata version to 2.3.0
2011-06-04 15:53:38 +02:00
Erik Hofman
8b72e13d2f
As torten explains: it is probably not a good idea to ti /environment/relative-humidity since the FGEnvironment ties to this property too
2011-06-04 15:39:45 +02:00
Erik Hofman
c346bcee77
Add the /rendering/scene/scattering property to allow the weather system to contoll the amount of light scattering (or absorption) of the fog
2011-06-04 13:11:56 +02:00
Torsten Dreyer
f28ddb0b5a
Fix bug#333 2D clouds sometimes not visible with material shaders are disabled
...
Only draw 3d clouds if enabled and shader-effects are true.
Remove the property-tie for 3dclouds-enabled and use a change listener
instead which also listens for changes of the shader-effects property.
2011-06-03 22:05:43 +02:00
James Turner
d5f81f0eac
Push some of the ATIS logic into AirportDynamics, in preparation for ATIS being owned by the airport
2011-06-02 23:28:40 +01:00
James Turner
b0985c6b02
Fix for bug 331, cmake was missing mkfifo() check. Thanks to Olaf Flebbe for the catch!
2011-06-02 23:01:17 +01:00
ThorstenB
370645e593
Olaf Flebbe: #332 , Improve Nasal's "systime" method
...
Use gettimeofday for determine time, rather than time() and gettimeofday()
2011-06-02 23:53:42 +02:00
James Turner
5572c53a7e
Minor tweaks to positioned find commands.
2011-06-02 00:33:47 +01:00
James Turner
fc7e9740c3
Improvements to exposing FGPositioned via commands - support frequency searches.
2011-06-01 23:55:04 +01:00
ThorstenB
ba7d8b8155
Ensure window position is 0,0 for multi-display setups with fullscreen mode
...
Fix an issue introduced by commit 863551a932
for multi-display setups.
Some code clean-up.
2011-06-01 21:31:48 +02:00
ThorstenB
aeb4bc3672
Fix Linux build (automake)
...
CMake guys: please don't forget automake (yet)! ;-)
2011-06-01 21:01:50 +02:00
Frederic Bouvier
bff1f29fe8
Fix Linux build
2011-06-01 20:28:31 +02:00
Frederic Bouvier
f1a3cedb2f
Fix win32 build
2011-06-01 20:25:53 +02:00
Curtis L. Olson
08ff6e2e2e
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-06-01 12:04:59 -05:00
James Turner
2b967608a0
Expose FGPositioned data via property tree, and make comm-stations a real FGPositioned subclass.
2011-06-01 17:45:22 +01:00
Curtis L. Olson
1d8dd81f90
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-06-01 11:19:19 -05:00
James Turner
2bdaebb7d9
Make basic route-manager commands be real SGCommands
2011-06-01 00:04:25 +01:00
Torsten Dreyer
e61d37a7a3
Remove some unused code
2011-05-31 20:58:22 +02:00
Torsten Dreyer
3a11f8ae28
remove inclusion of useless stdio.h
2011-05-31 20:39:32 +02:00
Torsten Dreyer
61f2b98e8f
Compute gravitational acceleration
...
Compute gravitational acceleration based on the formula of
Somigliana corrected for altitude and provide the value
in property /environment/gravitational-acceleration-mps2
2011-05-31 15:28:32 +02:00
Torsten Dreyer
170df65081
Don't declare static functions in header file
2011-05-31 10:35:42 +02:00
Torsten Dreyer
2add898d90
Remove 'using namespace std' directive
2011-05-31 10:12:07 +02:00
Curtis L. Olson
6dc891de34
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-05-30 13:08:59 -05:00
ThorstenB
863551a932
fix #142 : initial window position
...
Be (at least a bit) smarter with initial x/y position
Also some minor type/comment issues.
2011-05-29 18:46:11 +02:00
ThorstenB
3c8a80d968
Deterministic loading sequence for Nasal scripts
...
Avoid loading Nasal scripts in (random) file system order
2011-05-29 18:44:15 +02:00
Frederic Bouvier
11bb6ef146
Fix linux build - auto_ptr<> needs <memory>
2011-05-29 09:34:56 +02:00
James Turner
9c983359aa
Move all MP code in src/MultiPlayer.
...
Allow the subsystem to be (re-)inited at runtime.
2011-05-29 00:04:30 +01:00
ThorstenB
0d0b5c616c
Bertrand Coconnier: bug fix for #184 , JSBSim: command line arguments
...
1. The atmospheric properties of FG are not yet initialized when
JSBSim is initialized.
-> patch is quite basic and there may exist smarter ways to initialize
properly the environment before the FDM.
2. The Euler angles were initialized after the velocities.
3. The glide slope and rate of climb were ignored. Fixes all FDMs (YASim,
UIUC, JSBSim, etc.)
4. Some properties were instructed to re-use their previous value while
they should not.
5. Some bugs existed in JSBSim trim code. -> This bug has already been
fixed in JSBSim but the corresponding patch has not yet been applied to FG.
2011-05-29 00:05:33 +02:00
ThorstenB
b4d90150c5
issue #127 : make screen shots work with OSG multi-threading
...
Make sure actual snap shot is executed in graphics context.
(patch requires simgear+fgdata update!)
2011-05-28 23:27:46 +02:00
James Turner
a32ef9f391
Fix yet another subtle resize problem I introduced, which upset PUI. This code is terribly fragile - yuck. Thanks to papillion 81 for tracking down the issue,
2011-05-28 21:20:06 +01:00
ThorstenB
be1117f782
fixed #308 : "Reload input" did not respect joysticks.xml
...
Predefined joystick information must be maintained on "reload input".
2011-05-28 11:16:03 +02:00
Curtis L. Olson
cbec277ed4
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-05-27 15:14:42 -05:00
James Turner
4bfa9cac85
Used the simgear strutils helper, fixing a corner-case ThorstenB spotted.
2011-05-26 20:18:27 +01:00
James Turner
1b4e5e1b91
Unfortunately, the view code relies on resize being called each frame ... bah. Fixes startup aspect ratio for the moment.
2011-05-25 12:18:07 +01:00
James Turner
436abe1e62
Factor timeofday command into the TimeManager
2011-05-25 12:13:25 +01:00
James Turner
5bae2e3d37
Merge branch 'refs/heads/topics/loadfp' into next
2011-05-25 11:51:33 +01:00