]> git.mxchange.org Git - flightgear.git/log
flightgear.git
16 years agoBallistics underslung load changes from Vivian Meazza
timoore [Fri, 4 Jan 2008 22:31:18 +0000 (22:31 +0000)]
Ballistics underslung load changes from Vivian Meazza

16 years agoadd ViewPartitionNode to VS project
timoore [Fri, 4 Jan 2008 08:46:01 +0000 (08:46 +0000)]
add ViewPartitionNode to VS project

16 years agoAdd ViewPartionNode to the scenegraph
timoore [Fri, 4 Jan 2008 07:35:43 +0000 (07:35 +0000)]
Add ViewPartionNode to the scenegraph

ViewPartitionNode addresses Z-fighting issues by rendering near and far
parts of the scene seperately.

16 years agoReturn the --fov= to it's original functionality.
curt [Sat, 29 Dec 2007 21:51:39 +0000 (21:51 +0000)]
Return the --fov= to it's original functionality.

16 years agoBallistics fix from Vivian Meazza
timoore [Fri, 28 Dec 2007 22:05:14 +0000 (22:05 +0000)]
Ballistics fix from Vivian Meazza

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 20:33:55 +0000 (20:33 +0000)]
Modified Files:
src/Main/renderer.cxx: Use osg::Hint instead of glHint.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 12:19:20 +0000 (12:19 +0000)]
Modified Files:
fg_os_osgviewer.cxx: Use the DISPLAY environment variable
if not set otherwise.

16 years agoRemove references to SceneView and CameraView
timoore [Sat, 22 Dec 2007 23:26:56 +0000 (23:26 +0000)]
Remove references to SceneView and CameraView

16 years agoExperimental patch for applying force to ballistic objects
timoore [Fri, 21 Dec 2007 23:37:05 +0000 (23:37 +0000)]
Experimental patch for applying force to ballistic objects

From Vivian Meazza

16 years agos/no-warning/depreciated/, so people adding that to custom huds understand
mfranz [Fri, 21 Dec 2007 12:03:10 +0000 (12:03 +0000)]
s/no-warning/depreciated/, so people adding that to custom huds understand
better what they are doing  :-)

16 years agodepreciation warning for users of old custom HUDs
mfranz [Fri, 21 Dec 2007 11:39:51 +0000 (11:39 +0000)]
depreciation warning for users of old custom HUDs

16 years agoFix tabs and spaces. No overflow risk here
fredb [Fri, 21 Dec 2007 07:52:26 +0000 (07:52 +0000)]
Fix tabs and spaces. No overflow risk here

16 years agoFix for "falling through ground" problem
timoore [Thu, 20 Dec 2007 23:20:51 +0000 (23:20 +0000)]
Fix for "falling through ground" problem

The LOD far range on the tile entry scenegraph node was initialized to
0. This meant that any traverals of active children that happened
before the tile manager updated the node would ignore the node
altogether. Among these is the groundcache traversal which was failing
at startup even though scenery was loaded.

Also added a function to dump scene graph nodes to files; very handy
in gdb.

16 years agoUpdate MSVC 7.1 projects - compile with osgViewer instead of glut
fredb [Wed, 19 Dec 2007 07:35:59 +0000 (07:35 +0000)]
Update MSVC 7.1 projects - compile with osgViewer instead of glut

16 years agoAdded copyright to SceneryPager. Removed FGTileLoader
timoore [Sat, 15 Dec 2007 06:01:24 +0000 (06:01 +0000)]
Added copyright to SceneryPager. Removed FGTileLoader

16 years agoCheck if request has already been satisfied
timoore [Fri, 14 Dec 2007 22:52:57 +0000 (22:52 +0000)]
Check if request has already been satisfied

16 years agoschedule tiles in Inited state if we get a valid bucket
timoore [Fri, 14 Dec 2007 22:52:31 +0000 (22:52 +0000)]
schedule tiles in Inited state if we get a valid bucket

16 years agoSet up pager in GLUT embedded osgViewer
timoore [Fri, 14 Dec 2007 22:52:15 +0000 (22:52 +0000)]
Set up pager in GLUT embedded osgViewer

16 years agoUse the OSG DatabasePager instead of FGTileLoader
timoore [Fri, 14 Dec 2007 22:51:56 +0000 (22:51 +0000)]
Use the OSG DatabasePager instead of FGTileLoader

Make an OSG file reader for .stg files.

New class flightgear::SceneryPager, which is a subclass
osg::DatabasePager to handle explicit delete requests.

Modify FGNewCache, FGTileEntry, and FGTileManager to use
SceneryPager. Mostly this involved removing the queues that talked to
FGTileLoader.

Calculate accurate tile timestamps from the time they are traversed in
the cull stage (which means that they are visible) instead of updating
them periodically.

Replace tile entry transform and range node with one LOD node

16 years agoUpdate GroundLightManager
timoore [Thu, 13 Dec 2007 23:30:54 +0000 (23:30 +0000)]
Update GroundLightManager

Also use GroundLightManager to manage light node masks.

16 years agoFix mouse warping for embedded osgviewer in SDL
timoore [Wed, 12 Dec 2007 22:36:23 +0000 (22:36 +0000)]
Fix mouse warping for embedded osgviewer in SDL

As in the GLUT implementation, let the FGManipulator drain its event queue.

16 years agoHandle warped pointer in embedded GLUT osgViewer
timoore [Wed, 12 Dec 2007 08:24:27 +0000 (08:24 +0000)]
Handle warped pointer in embedded GLUT osgViewer

Signal the FGManipulator that a warp has occured so that it can drain its
event queue, but otherwise no warp handling is done in GLUT specific code.

16 years agoMake sure fgfs finds the correct version of the base package.
durk [Tue, 11 Dec 2007 21:48:00 +0000 (21:48 +0000)]
Make sure fgfs finds the correct version of the base package.

16 years agoCheck if scenery is available before blowing away existing values in ground cache
timoore [Tue, 11 Dec 2007 11:10:35 +0000 (11:10 +0000)]
Check if scenery is available before blowing away existing values in ground cache

This fixes a race condition when teleporting somewhere outside of the
currently loaded scenery. Before, if there was no valid scenery, an
aircraft might end up at the center of the earth...

16 years agoUse a render target fallback that works in any case.
frohlich [Tue, 11 Dec 2007 06:19:08 +0000 (06:19 +0000)]
Use a render target fallback that works in any case.
Avoids a crash on dri cards on linux.

16 years agoMaik: add ROTORBALANCE axis. Fix spelling of ROTORRELTARGET.
andy [Mon, 10 Dec 2007 19:25:24 +0000 (19:25 +0000)]
Maik: add ROTORBALANCE axis.  Fix spelling of ROTORRELTARGET.

16 years agoTatsuhiro NISHIOKA: initialize classes (fixes segfault on exit on MacOS)
mfranz [Mon, 10 Dec 2007 19:17:57 +0000 (19:17 +0000)]
Tatsuhiro NISHIOKA: initialize classes (fixes segfault on exit on MacOS)

16 years agoadd some generic properties for free use
mfranz [Sat, 8 Dec 2007 09:49:16 +0000 (09:49 +0000)]
add some generic properties for free use

16 years agoCheck for valid multiplayer packet.
timoore [Fri, 7 Dec 2007 12:43:42 +0000 (12:43 +0000)]
Check for valid multiplayer packet.

Instead of just reporting that the magic number, length, etc. of a
multiplayer packet is invalid, abort processing this packet. Also,
check if enough space remains to send a property string.

16 years agoAdd an option to FGTextureManager to create dynamic textures.
timoore [Fri, 7 Dec 2007 09:14:16 +0000 (09:14 +0000)]
Add an option to FGTextureManager to create dynamic textures.

Dynamic textures shouldn't have their STATIC attribute set.

16 years agoChanged GLUT support to use an embedded osgViewer too
timoore [Fri, 7 Dec 2007 09:11:46 +0000 (09:11 +0000)]
Changed GLUT support to use an embedded osgViewer too

16 years ago- move exception handling from init() and childAdded() to add_model()
mfranz [Thu, 6 Dec 2007 18:32:43 +0000 (18:32 +0000)]
- move exception handling from init() and childAdded() to add_model()
- tell why loading a model failed

16 years agotell *why* loading a model failed
mfranz [Thu, 6 Dec 2007 18:04:19 +0000 (18:04 +0000)]
tell *why* loading a model failed

16 years agoVarious updates.
curt [Wed, 5 Dec 2007 19:01:49 +0000 (19:01 +0000)]
Various updates.

16 years agoadd runway number as "id" to the runway hash within an airport hash
mfranz [Wed, 5 Dec 2007 10:57:51 +0000 (10:57 +0000)]
add runway number as "id" to the runway hash within an airport hash
(It's already available as runway hash key, but the runway hash shouldn't
depend on it and be self-contained.)

16 years agobackport from JSBSim/cvs: apply prop sense only once (OK'ed by JSB)
mfranz [Tue, 4 Dec 2007 20:22:36 +0000 (20:22 +0000)]
backport from JSBSim/cvs: apply prop sense only once  (OK'ed by JSB)

16 years agoWin32 fix
fredb [Sun, 2 Dec 2007 12:29:29 +0000 (12:29 +0000)]
Win32 fix

16 years agomake the state of the Meta and Super modifier keys available. These keys
mfranz [Sun, 2 Dec 2007 10:36:58 +0000 (10:36 +0000)]
make the state of the Meta and Super modifier keys available. These keys
are not available out-of-the-box on all systems and keyboards, and should
therefore not be used in files committed to CVS. This makes them well
suited for local key bindings, as they aren't likely to get overwritten
with later releases. SDL supports Meta and Super, OSG supports only Meta,
and GLUT supports neither.

(Somehow this part escaped the previous commit. :-)

16 years agoread key code and modifiers back in after event interface call
mfranz [Sat, 1 Dec 2007 23:37:58 +0000 (23:37 +0000)]
read key code and modifiers back in after event interface call

16 years ago- minor command update (loadxml, savexml, property-scale)
mfranz [Sat, 1 Dec 2007 19:44:00 +0000 (19:44 +0000)]
- minor command update (loadxml, savexml, property-scale)
- add <condition> and <mod-{up,shift,ctrl,alt,meta,super}>
  example to key definition description

16 years agoadd <mod-meta> and <mod-super> XML elements for key bindings
mfranz [Sat, 1 Dec 2007 16:38:49 +0000 (16:38 +0000)]
add <mod-meta> and <mod-super> XML elements for key bindings

16 years agomake the state of the Meta and Super modifier keys available. These keys
mfranz [Sat, 1 Dec 2007 13:09:11 +0000 (13:09 +0000)]
make the state of the Meta and Super modifier keys available. These keys
are not available out-of-the-box on all systems and keyboards, and should
therefore not be used in files committed to CVS. This makes them well
suited for local key bindings, as they aren't likely to get overwritten
with later releases. SDL supports Meta and Super, OSG supports only Meta,
and GLUT supports neither.

16 years agoRewrite SDL code to use an embedded osgViewer.
timoore [Fri, 30 Nov 2007 00:01:01 +0000 (00:01 +0000)]
Rewrite SDL code to use an embedded osgViewer.

This uses the osgViewer infrastructure instead of setting up and osg::SceneView.
When the same change is made for glut, much of render.cxx can be deleted.

16 years agomove callback registration functions to fg_os_common.cxx
timoore [Fri, 30 Nov 2007 00:00:36 +0000 (00:00 +0000)]
move callback registration functions to fg_os_common.cxx

16 years agobackport of code using ModelRegistry
timoore [Thu, 29 Nov 2007 23:59:47 +0000 (23:59 +0000)]
backport of code using ModelRegistry

16 years agoMove to loading tiles and their submodels only by name.
timoore [Thu, 29 Nov 2007 23:59:14 +0000 (23:59 +0000)]
Move to loading tiles and their submodels only by name.

Some cleanup in tileentry.cxx, but mostly code to implement loading of tiles
and their models without reference to FGTileEntry or SGBucket structures.
Also, don't do deferred model loading; load them when the tile is loaded.

16 years agoTiago GUSMAO: keep sound muted after pause/unpause
mfranz [Sat, 24 Nov 2007 08:40:04 +0000 (08:40 +0000)]
Tiago GUSMAO: keep sound muted after pause/unpause

16 years agoinitialize _material pointer in FGGroundCache
timoore [Thu, 22 Nov 2007 23:46:39 +0000 (23:46 +0000)]
initialize _material pointer in FGGroundCache

_material was uninitialized. This was causing a segfault with
as-yet-to-be-checked-in paging code; I don't know if it ever resulted
in a segfault with the old tile loader, but it certainly could have.

16 years agoAdd a command to dump just the terrain portion of the scene graph to a .osg
curt [Wed, 21 Nov 2007 20:51:49 +0000 (20:51 +0000)]
Add a command to dump just the terrain portion of the scene graph to a .osg
file.  Possible uses of this functionality could include converting the
model to some other format or coordinate system for use in some other
visualization or simulation.

17 years agoMinor documentation update.
durk [Sun, 18 Nov 2007 14:22:40 +0000 (14:22 +0000)]
Minor documentation update.

17 years agoinitialize release_keys array
mfranz [Sat, 17 Nov 2007 17:38:48 +0000 (17:38 +0000)]
initialize release_keys array

17 years agoChanged to use getId() instead of using a direct iterator comparison,
durk [Sat, 17 Nov 2007 13:46:35 +0000 (13:46 +0000)]
Changed to use getId() instead of using a direct iterator comparison,
because MSVC8 crashed on that.

17 years agoOlaf Flebbe: Add a few new files to the MSVC projects.
durk [Tue, 13 Nov 2007 20:24:22 +0000 (20:24 +0000)]
Olaf Flebbe: Add a few new files to the MSVC projects.

17 years ago- move temporary keyboard fix from input.cxx to fg_os{,_sdl}.cxx.
mfranz [Mon, 12 Nov 2007 19:29:08 +0000 (19:29 +0000)]
- move temporary keyboard fix from input.cxx to fg_os{,_sdl}.cxx.
  This is required to make sure the same letter key gets released,
  which got the press event. (After Ctrl-press -> a-press -> Ctrl-release
  a-release we want the Ctrl-a binding released, not the a binding.)

- add key listener interface for direct key access from Nasal space

17 years agoalso copy name & type to /sim/current-view
mfranz [Fri, 9 Nov 2007 17:43:22 +0000 (17:43 +0000)]
also copy name & type to /sim/current-view
That's useful for animations, and we can't rely on numbers. And shouldn't.

17 years agoMove some values exclusively used by LaRCsim to LaRCsim
frohlich [Fri, 9 Nov 2007 05:39:13 +0000 (05:39 +0000)]
Move some values exclusively used by LaRCsim to LaRCsim

17 years agodon't overwrite rudder position with nose wheel position
mfranz [Wed, 7 Nov 2007 17:41:31 +0000 (17:41 +0000)]
don't overwrite rudder position with nose wheel position

17 years agomainloop: move event_mgr and viewmgr updated before spatial sound calculations
mfranz [Wed, 7 Nov 2007 15:57:38 +0000 (15:57 +0000)]
mainloop: move event_mgr and viewmgr updated before spatial sound calculations

17 years agomove event_mgr and view_mgr bundle right before the requestRedraw()
mfranz [Tue, 6 Nov 2007 21:05:38 +0000 (21:05 +0000)]
move event_mgr and view_mgr bundle right before the requestRedraw()
This fixes the last jitter problems with views attached to MP/AI
objects, and doesn't seem to cause any new ones.

17 years agochange update order to fdm -> events -> viewmanager
mfranz [Tue, 6 Nov 2007 12:01:29 +0000 (12:01 +0000)]
change update order to fdm -> events -> viewmanager
This removes some jitter in cases where Nasal is used to set up view
parameters from FDM data, such as position and orientation. (The event
subsystem handles Nasal's settimer() calls.)

17 years agorevert swapping of x & y offsets in "lookat" mode
mfranz [Mon, 5 Nov 2007 22:19:39 +0000 (22:19 +0000)]
revert swapping of x & y offsets in "lookat" mode
This was correct in the old repository and in revision 1.1 of the new,
but then broken in revision 1.2. After that, "lookat" and "lookfrom"
mode used different coordinate systems, and the "Adjust View Distance"
didn't work correctly in "lookat" mode.

17 years agoCsaba HALASZ: fix IVSI instrument problem
mfranz [Sat, 3 Nov 2007 21:02:28 +0000 (21:02 +0000)]
Csaba HALASZ: fix IVSI instrument problem

"I have been investigating the Concorde IVSI problem. I came to the
conclusion that the trouble is that the environment altitude and thus
the pressure (which is calculated from that) is lagging by 1 frame.
Normally that wouldn't be a problem, but the IVSI calculates rate of
change and it will use the new dt with the old value difference,
thereby arriving at bad results if dt changes (and it does)."

17 years agosorting nodes -> don't use shared pointer
mfranz [Sat, 3 Nov 2007 17:04:04 +0000 (17:04 +0000)]
sorting nodes -> don't use shared pointer

17 years agoAdd a --vehicle= option which is a synonym for --aircraft= but is more
curt [Fri, 2 Nov 2007 18:39:10 +0000 (18:39 +0000)]
Add a --vehicle= option which is a synonym for --aircraft= but is more
natural when selecting ground vehicles like a jeep or a snowplow.

17 years agosort entries alphabetically (consistent with property browser)
mfranz [Sat, 27 Oct 2007 21:28:56 +0000 (21:28 +0000)]
sort entries alphabetically (consistent with property browser)

17 years agotry to fix yet another crash bug (don't worry, there's one for anybody!)
mfranz [Sat, 27 Oct 2007 19:16:39 +0000 (19:16 +0000)]
try to fix yet another crash bug (don't worry, there's one for anybody!)

17 years agore-active commented out "delete". Doesn't seem to crash anymore.
mfranz [Sat, 27 Oct 2007 19:13:42 +0000 (19:13 +0000)]
re-active commented out "delete". Doesn't seem to crash anymore.

17 years agounescape \a and \b as well
mfranz [Sat, 27 Oct 2007 17:25:39 +0000 (17:25 +0000)]
unescape \a and \b as well

17 years agomake sure snprintf() buffer is terminated
mfranz [Sat, 27 Oct 2007 17:16:00 +0000 (17:16 +0000)]
make sure snprintf() buffer is terminated

17 years agoFix memory leak introduced when we stopped using _context for script
andy [Wed, 24 Oct 2007 18:07:02 +0000 (18:07 +0000)]
Fix memory leak introduced when we stopped using _context for script
invocations, but left it in place for miscellaneous allocation work.
Contexts cache allocated objects in a temps vector and only clear it
out when they are used.

Also, fix a type warning while I'm in there.

17 years agodon't initialize iterator twice
mfranz [Mon, 22 Oct 2007 17:28:08 +0000 (17:28 +0000)]
don't initialize iterator twice

17 years agofix license (Public Domain)
mfranz [Mon, 22 Oct 2007 16:58:46 +0000 (16:58 +0000)]
fix license (Public Domain)

17 years agogetAttribute(): s/refcount/references/
mfranz [Sun, 21 Oct 2007 20:19:12 +0000 (20:19 +0000)]
getAttribute():  s/refcount/references/

17 years agoUse SGSharedPointer instead of the ssgSharedPointer from the plib branch.
durk [Sat, 20 Oct 2007 18:28:22 +0000 (18:28 +0000)]
Use SGSharedPointer instead of the ssgSharedPointer from the plib branch.

17 years agomake node.getAttribute("refcount") return the SGSharedPtr's refcount
mfranz [Sat, 20 Oct 2007 17:16:43 +0000 (17:16 +0000)]
make node.getAttribute("refcount") return the SGSharedPtr's refcount
(meant for debugging purposes)

17 years agoMiscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib
durk [Sat, 20 Oct 2007 08:36:21 +0000 (08:36 +0000)]
Miscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib
version
* Delete ai list objects in ~ATC/AIMgr.cxx:AIMgr::~AIMgr()
* Delete colors in GUI/new_gui.cxx: NewGui::~NewGui.cxx
* Delete memory allocated to the class member "route" in
  Instrumentation/gps.cxx
* Delete all globals (except a few "unsafe" ones that still cause segfaults
  and need further examination.
* Use an SGShared pointer for navaid memory allocation, so that pointers to
  individual navaid objects can be included safely in multiple navaid lists

17 years ago- airportinfo(): don't bark when no airport was found (K. HOERCHER)
mfranz [Thu, 18 Oct 2007 11:43:38 +0000 (11:43 +0000)]
- airportinfo(): don't bark when no airport was found  (K. HOERCHER)
- simplify listener purging and fix removelistener() return value for
  one-shot listeners
- listener: inherit virtualness
- s/handler/code/ in listener code to be consistent with NasalSys::call

17 years ago- listener: re-order and change callback function args; simplify code
mfranz [Tue, 16 Oct 2007 15:15:41 +0000 (15:15 +0000)]
- listener: re-order and change callback function args; simplify code
- make code look like Andy wrote it (so people know whom to blame :-)
- nasal-props.cxx: warning--

17 years ago- use refcounted node pointers, so that no subsystem (nasal!) can invalidate them
mfranz [Tue, 16 Oct 2007 15:01:19 +0000 (15:01 +0000)]
- use refcounted node pointers, so that no subsystem (nasal!) can invalidate them
- add frame signal for debugging purposes

17 years agogive FDMs one update cycle time before setting the fdm-initialized signal
mfranz [Tue, 16 Oct 2007 07:55:43 +0000 (07:55 +0000)]
give FDMs one update cycle time before setting the fdm-initialized signal
(YASim needs that to fully initialize the landing gear)

17 years ago(depreciated) cmdarg() should return _node, not parent
mfranz [Mon, 15 Oct 2007 19:12:03 +0000 (19:12 +0000)]
(depreciated) cmdarg() should return _node, not parent

17 years ago- add argc/argv arguments to FGNasalSys::call
mfranz [Mon, 15 Oct 2007 16:28:40 +0000 (16:28 +0000)]
- add argc/argv arguments to FGNasalSys::call
- add support for childAdded/childRemoved listeners
- use regular function arguments for property ghosts
- warning--

17 years agorevert meaning of third, optional argument, and add an optional fourth
mfranz [Sun, 14 Oct 2007 18:01:26 +0000 (18:01 +0000)]
revert meaning of third, optional argument, and add an optional fourth
argument:

  setlistener(<property>, <func> [, <initial=0> [, <persistent=1>]])

This definition defaults to the old behavior. The fourth argument can
be set to zero, in which case the function is only called when the
node value has actually changed. It should really default to zero, but
then all callers would have to be reviewed, which is a bit too dangerous
"shortly" before a release.

17 years agofix off-by-one bug for airport type handling
mfranz [Sun, 14 Oct 2007 10:05:41 +0000 (10:05 +0000)]
fix off-by-one bug for airport type handling

17 years agoairportinfo(): add possibility to search for next airport of a particular
mfranz [Sun, 14 Oct 2007 07:51:11 +0000 (07:51 +0000)]
airportinfo(): add possibility to search for next airport of a particular
type: "airport" (default), "seaport", "heliport"

17 years ago- make weighting factors for search function with target heading permanent
mfranz [Fri, 12 Oct 2007 20:53:46 +0000 (20:53 +0000)]
- make weighting factors for search function with target heading permanent
- add "good" offset as suggested by Thomas FOERSTER
- minor tweaks

17 years agoadd new listener type: setlistner(<prop>, <func> [, <type=0>]);
mfranz [Fri, 12 Oct 2007 17:24:43 +0000 (17:24 +0000)]
add new listener type:    setlistner(<prop>, <func> [, <type=0>]);
0 -> trigger whenever property is written to (even if it's the old value; default)
1 -> like 0, but also trigger the function initially
2 -> trigger initially, but then only on changes

17 years agofix another creative char[] == "" comparison
mfranz [Fri, 12 Oct 2007 10:20:54 +0000 (10:20 +0000)]
fix another creative char[] == "" comparison

17 years agoignore strange 00 entry in apt.dat.gz as committed today; example:
mfranz [Thu, 11 Oct 2007 16:22:39 +0000 (16:22 +0000)]
ignore strange 00 entry in apt.dat.gz as committed today; example:
00 12600 HONOLULU CNTR

17 years agocleaner & faster (don't use STL functions ::size() and ::end() in loop
mfranz [Thu, 11 Oct 2007 15:33:24 +0000 (15:33 +0000)]
cleaner & faster (don't use STL functions ::size() and ::end() in loop
condition statements, don't use multiple vector array access via index)

17 years agoprevent endless loop. The new awy.dat.gz has entries like line 2632 ...
mfranz [Thu, 11 Oct 2007 13:51:11 +0000 (13:51 +0000)]
prevent endless loop. The new awy.dat.gz has entries like line 2632 ...
AMIBO  34.973889  021.658056 ARLOS  34.625278  023.000000 1 095 195 M871-MT E-MT W-N4
... where unexpected ids follow (here E-MT W-N4). The loader didn't skipeol.
The additional values are for a first quick&dirty fix just dropped.

17 years agomake that __MWERKS__ :-}
mfranz [Thu, 11 Oct 2007 09:28:05 +0000 (09:28 +0000)]
make that __MWERKS__  :-}

17 years agoMake sure the __MWERKS__ test can't go unnoticed. It's really time to
mfranz [Thu, 11 Oct 2007 09:19:49 +0000 (09:19 +0000)]
Make sure the __MWERKS__ test can't go unnoticed. It's really time to
remove all those 41 hacks if possible. Metrowerks is under category
"Defunct software companies" in Wikipedia, its compiler was known to
work on PowerPC (which we don't support, anway, right?) and on some
Unices. The hacks are in CVS since the first commit 2002/9/10 (old
repository!) and probably were in the code long before that. Any
platform where such a broken compiler is still used, will hardly
be suitable to run fgfs at all.

17 years agosetprop(): make sure return value is always set
mfranz [Thu, 11 Oct 2007 07:58:56 +0000 (07:58 +0000)]
setprop(): make sure return value is always set

17 years agorename FGAirportSearchFilter::acceptable() -> ::pass()
mfranz [Thu, 11 Oct 2007 07:53:17 +0000 (07:53 +0000)]
rename FGAirportSearchFilter::acceptable() -> ::pass()

17 years agodon't write past array bounds
mfranz [Thu, 11 Oct 2007 07:41:44 +0000 (07:41 +0000)]
don't write past array bounds

17 years agoJSB: "Fixed uninitialized variables; patch by Anders Gidenstam"
mfranz [Wed, 10 Oct 2007 22:11:14 +0000 (22:11 +0000)]
JSB: "Fixed uninitialized variables; patch by Anders Gidenstam"

mf: backporting from JSB/CVS to fix serious gear problem

17 years agosetprop(): report error on writing to unwritable property
mfranz [Wed, 10 Oct 2007 19:24:17 +0000 (19:24 +0000)]
setprop(): report error on writing to unwritable property

17 years agochecking the brutal way whether the 41 ugly __MWERKS__ hacks are really
mfranz [Wed, 10 Oct 2007 18:34:28 +0000 (18:34 +0000)]
checking the brutal way whether the 41 ugly __MWERKS__ hacks are really
still needed. At some point they must have fixed their broken compiler.

17 years agosave some startup parameters under /sim/startup/options/. options.cxx puts
mfranz [Sun, 7 Oct 2007 19:27:05 +0000 (19:27 +0000)]
save some startup parameters under /sim/startup/options/. options.cxx puts
them under /sim/presets/ but they aren't save there, and as fgInitPosition
and its subroutines overwrite them, we lose the information about what the
user really wanted. This is a temporary solution -- it really belongs into
options.cxx.