ThorstenB
dc5af66748
Merge commit 'refs/merge-requests/9' of git://gitorious.org/fg/simgear into merge-requests/9
2011-08-28 14:10:11 +02:00
ThorstenB
40e177a02e
#329 : fix issue with mismatching sound volume
...
Sounds played after changing view position sometimes had incorrect volume
2011-08-27 12:00:17 +02:00
ThorstenB
36a8243f73
Support absolute paths for XML includes.
...
Use standard path resolver when searching for includes. Includes like
<foo include="/Aircraft/Instruments/myfile.xml">
are now also supported - no need for
<foo include="../../../Aircraft/Instruments/myfile.xml">.
2011-08-27 11:53:15 +02:00
ThorstenB
ee06c12374
Fix sg_dir dot-file handling
...
File dialogs never showed ".." directories for navigation, since these were
filtered by the "INCLUDE_HIDDEN" option. Only the "NO_DOT_OR_DOTDOT"
option should be used for filtering - otherwise it's impossible to show
the "."/".." directories while all other files are still hidden.
2011-08-21 14:31:08 +02:00
ThorstenB
a668e47fa1
Introduce some more logging classes.
...
The current habit of almost everything being in either SG_GENERAL or
SG_ALL really sucks :).
2011-08-11 23:45:19 +02:00
ThorstenB
469c0242d4
Improved CMake support for libsvn
...
Added missing CMake defines for SVN_CLIENT.
Don't detect libsvn without APR.
When installed, enable libsvn support by default (same as for automake).
When enabled, provide libsvn include dir to libtsync.
gitignore temporary CMake files
2011-08-04 19:28:13 +02:00
ThorstenB
6edfacbf4e
Ove Kåven: Fix property refcounting for particles
2011-08-01 19:47:19 +02:00
ThorstenB
b53c53d9d8
#232 : resurrect the "point sprites for runway lights" switch
...
Automatic GL/OSG feature detection still not working, since we don't have
a "context" - but at least the manual switch works (on start-up only).
2011-07-31 14:00:48 +02:00
ThorstenB
116c487384
Fix locale setting for Windows
2011-07-18 20:29:11 +02:00
ThorstenB
5f70abb16d
Clean solution for locale problem.
...
Changing and reverting the locale isn't thread-safe. Instead, setup the
environment to ensure the active locale sticks to default "C" locale at
any time.
2011-07-18 20:15:50 +02:00
ThorstenB
d4f5a35e87
Alert message formatting.
...
Avoid log output cluttering due to "missing animation objects".
2011-07-03 13:04:00 +02:00
ThorstenB
59a6fd1ed8
#348 : (continued) Missing sound files not reported properly
...
Avoid useless "File '' not found." messages for missing sound files.
2011-06-26 01:06:07 +02:00
ThorstenB
8c8d9e5cc4
#348 : Missing model/texture files not reported properly
...
Whenever resolving a (relative) path to an absolute path with
'findDataFile', check if the result is empty and report original
(relative) path as missing. Otherwise no or a meaningless message is
issued ("File '' not found.").
2011-06-26 00:36:19 +02:00
ThorstenB
204e483c08
Disable support of white-space path for Windows
...
Apparently enclosing white-space paths using '"' doesn't work on Windows.
2011-06-23 17:20:06 +02:00
ThorstenB
f582eb5310
Improve upate interval after failed updates.
2011-06-23 17:20:06 +02:00
ThorstenB
76fcad0a0b
Bad boundary check. Add missing parentheses.
2011-06-22 09:16:27 +02:00
ThorstenB
cc06799838
fix #353 : svn doesn't like stray path separators
2011-06-20 22:46:46 +02:00
ThorstenB
8a26c382a2
Improve error handling and avoid refresh nuisances.
...
Ignore errors due to missing (ocean-)scenery data on SVN server.
For now, only refresh scenery tiles when ocean is replaced by actual
scenery data after download.
2011-06-20 22:10:07 +02:00
ThorstenB
22198d8bd2
Improve external SVN support.
...
Support white-space paths when calling external SVN utility.
Support optional configuration of absolute path to SVN utility.
2011-06-20 22:05:37 +02:00
ThorstenB
708ae35068
Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE
...
fixes commit c782a32076 ,
(also see 38494a48d8 :) )
2011-06-14 21:49:42 +02:00
ThorstenB
50cea4f64e
Csaba Halasz: fix SGTimerQueue so tasks can remove themselves properly
...
fixes commit c033979130
2011-06-13 14:13:48 +02:00
ThorstenB
c782a32076
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:32:13 +02:00
ThorstenB
edc877442f
Add optional attribute condition to "copyProperties".
...
Option to only copy properties with specific attribute values.
Default is copy all (as before).
2011-06-12 13:41:38 +02:00
ThorstenB
a1fe0f6305
Make some properties read-only to avoid sim-reset issues.
...
Do not loose internal statistics/state on sim-reset
2011-06-12 13:31:23 +02:00
ThorstenB
cb5aee9fa4
Add missing CMake module for built-in svn-client support.
...
Thanks to Martin for spotting this.
2011-06-12 10:08:16 +02:00
ThorstenB
9b18b14f11
Added missing terrsync make+header files...
2011-06-11 23:58:00 +02:00
ThorstenB
0fd7bb8d3f
Convert terrasync into a subsystem.
...
Fixed scenery tile refresh method.
Simgear automake makefiles with libsvn detection.
Simgear CMake support for libsvn (may not work :) )
2011-06-11 23:22:26 +02:00
ThorstenB
c836018ac7
Copied original terrasync sources
2011-06-11 22:55:57 +02:00
ThorstenB
ba678eabdc
Add method to reload specific scenery tiles.
2011-06-09 22:24:08 +02:00
ThorstenB
9442d3d0f3
Added guarded blocking deque class.
...
So, what are we going to do with it... ;-)
2011-06-08 23:39:24 +02:00
ThorstenB
3d109f9c4c
fix #314 : Nasal not working on i386/32bit systems with gcc>=4.5.x
...
Change magic Nasal reftag to encode a quiet NaN (qNaN) instead of a
signaling NaN (sNaN), since sNaNs cannot pass cleanly through an FPU
(an sNaN is always converted to a qNaN, even by simple FPU load/store
instructions). gcc 4.5.x uses float load/store operations more
aggressively to move our 64bit Nasal variables (naRef) around.
Signed-off-by: Andy Ross
2011-06-02 10:05:10 +02:00
ThorstenB
3c0966279c
fixed #260 : Scale animation also scales color
...
Added missing normalization. Thanks to Lauri for analysing this.
2011-05-29 18:40:19 +02:00
ThorstenB
c033979130
screen shot fixes (issue #127 related)
...
Provide proper return status when screen grabbing.
Allow tasks to remove themselves (return task entries to the queue _before_
executig them)
2011-05-28 23:09:06 +02:00
ThorstenB
f3c131ffaf
Minor compiler version detection issue.
...
Well, almost prepared for gcc 5.0 now ;-).
2011-05-27 22:30:43 +02:00
ThorstenB
c7c3fae5c2
Also remove visual_enviro.cxx from the VC90 build.
2011-05-07 19:40:01 +02:00
ThorstenB
83243f471a
Enable OSG cache (default) and option to disable.
...
(also requires flightgear update)
2011-04-03 18:56:09 +02:00
ThorstenB
3c0c51a946
Minor event manager clean-up/simplification.
...
(Mainly disliked the "delete this;" concept :) ).
2011-04-03 18:22:39 +02:00
ThorstenB
08ad449774
Improve subsystem manager's timing statistics
...
Option to print statistics at run-time.
Convenient filter parameters to show subsystems with jitter or excessive
execution time only.
2011-03-23 23:12:13 +01:00
ThorstenB
eae1b99036
Keep PropertyList outside global namespace
...
Avoids conflict with FG's GUI widget "PropertyList"...
(don't use "using..." in header files since namespaces become useless then)
2011-03-23 22:30:42 +01:00
ThorstenB
44f27b23d0
Avoid some memory leaks in derived classes due to non-virtual destructors.
2011-03-19 14:50:18 +01:00
ThorstenB
92c83bc280
Avoid nuisance sounds in initial update loop.
...
Stop all "in-transit" sounds effects from triggering in the first update
loop when their initial property value is "1".
2011-03-19 14:48:58 +01:00
ThorstenB
10bbd435b7
Catch dangling property ties.
...
It's bad when tied properties are not untied before removing the tied property list.
We could try to "untie" the properties in the destructor - but that usually
caused weird mem access errors, since the tied properties will access
a no longer existing object (the very object whose destruction called the
TiedPropertyList destructor...). => so just add a warning and a nagging trap :)
2011-03-07 19:32:20 +01:00
ThorstenB
2ef8672a6b
Change cloudfield::addCloud interface,
...
so it's more obvious that "addCloud" won't keep a reference to SGNewCloud.
2011-03-07 19:26:37 +01:00
ThorstenB
a22dd264cd
Replace occurrences of osgDB::findDataFile with SGModelLib wrapper
...
which considers separate aircraft dirs (--fg-aircraft).
2011-03-06 22:38:44 +01:00
ThorstenB
baf5116841
Merge remote branch 'origin/releases/2.2.0' into next
2011-03-04 22:52:21 +01:00
ThorstenB
e55017bbfc
Fix TextureBuilder to work with --fg-aircraft dirs.
...
Avoid direct use of osgDB to search for files. Using SGModelLib
instead to also search fg-aircraft dirs.
2011-03-04 22:50:32 +01:00
ThorstenB
ce71b8c1cf
Merge remote branch 'origin/releases/2.2.0' into next
2011-02-19 11:59:10 +01:00
ThorstenB
7b0c25f91e
#83 : John Denker: Set correct file modes
...
Sources shouldn't be executable.
2011-02-19 11:54:10 +01:00
ThorstenB
416fb94ae8
Clear tile cache on (re-)init.
...
Clearing the cache was disabled to avoid scenery reloading on sim resets,
which is now avoided elsewhere (in FG).
Cache cleaning is now needed to support new option for complete scenery
reloading.
2011-02-13 19:23:21 +01:00
ThorstenB
5208750cdb
Ivan Ngeow: Fixed compile for FreeBSD platforms.
2011-02-11 18:50:20 +01:00
ThorstenB
c684f8f043
Ivan Ngeow: Fixed compile for FreeBSD platforms.
2011-02-11 18:49:01 +01:00
ThorstenB
73084863b7
Temporary warning when compiling against OSG 2.9.11.
...
Current OSG development isn't supported by FG yet, so add a
warning for now...
2011-02-06 20:34:52 +01:00
ThorstenB
9e04bf1ece
Temporary warning when compiling against OSG 2.9.11.
...
Current OSG development isn't supported by FG yet, so add a
warning for now...
2011-02-06 10:04:55 +01:00
ThorstenB
840780dc4a
Another place to catch SG exceptions.
...
SGBinding::fire needs to catch, otherwise exceptions in the event handler
context cause an FG exit (fixes a crash with the route manager dialog).
2011-01-20 19:39:33 +01:00
ThorstenB
02b3c37b9f
Another place to catch SG exceptions.
...
SGBinding::fire needs to catch, otherwise exceptions in the event handler
context cause an FG exit (fixes a crash with the route manager dialog).
2011-01-20 01:06:46 +01:00
ThorstenB
b4f5eaa541
Current timestamps for forced scenery loading.
...
Priorities during forced model loads won't work unless using current framestamps...
2010-11-19 13:39:20 +01:00
ThorstenB
66cdbf6215
Fixed invalid character in source file.
...
Removed illegal character (0xc). How did this happen???
2010-11-19 13:36:50 +01:00
ThorstenB
c9e0bfb7fe
Improved tile cache priority scheme.
...
Use priorities for loading/unloading.
Maintain an expiry time for each tile.
Replaced "cache lock" by "current view" flag.
2010-11-19 13:33:12 +01:00
ThorstenB
9f88b077ee
remove old .cvsignore files
...
Hello GIT!
2010-11-14 15:09:36 +01:00
ThorstenB
0607a67a92
Fixed METAR. Make loader fully HTTP compliant.
...
HTTP protocol requires a "Host:" line.
The old noaa server didn't mind. Now it does...
2010-11-05 20:07:50 +01:00
ThorstenB
0b53dd8fa7
Show compiler warnings by default.
2010-10-30 20:53:19 +02:00
ThorstenB
5b734d8c52
Merge branch 'integration' into next
2010-10-28 19:39:55 +02:00
ThorstenB
662578dbe7
Buffer size safety.
...
Do not look for '\n' beyond valid data area.
Obey buffer length (in case a METAR contained a line > 512byte).
2010-10-23 14:47:24 +02:00