James Turner
4052c45ea3
Fix Mac data dir finding.
...
Mostly affects release builds, ensure data dir located within
the bundle is found correctly.
2013-08-26 22:21:55 +01:00
Clément de l'Hamaide
467783bd45
Clean FGCom logging and fix IAX input level
2013-08-24 17:51:03 +02:00
Clément de l'Hamaide
a215bc0625
Fix segFault on reset by checking IAX has been initialized
2013-08-22 14:12:06 +02:00
Clément de l'Hamaide
0e5b794a4a
FGCom: Should fix continous mic ON by checking state in main loop instead of listener
2013-08-21 20:24:07 +02:00
James Turner
206053722e
Fix crash on exit when FGCom is not being used.
2013-08-19 18:21:51 +01:00
Clément de l'Hamaide
7827e28ff3
Fix range calculation for special frequencies
...
Range for special freq was computed with previous freq, now they are always in range
Use a global variable (_currentFreqKhz) in order to avoid a <static_cast> in main loop; now it's only on frequency change
Fix a .size() > 0 for !.empty()
2013-08-19 16:08:29 +02:00
f-jjth
f24c4df73f
Improve OpenAL driver for IAXClient
...
Abort OpenAL initialization if input device are not found in this way we don't create and merge new OpenAL context with SGSoundMgr
Close OpenAL context and input device when FG is stopped
2013-08-19 14:39:18 +02:00
Tom Paoletti
b27eb2571c
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:02:15 +01:00
Tom Paoletti
1f88d1d11b
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:02:06 +01:00
Tom Paoletti
81cd33e2fa
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:01:59 +01:00
PlutoniumHeart
296555f26b
winpoop.h seriously?
2013-08-18 14:23:04 +02:00
f-jjth
d03b44b662
FGCom integrated into FlightGear.
...
Disabled by default at build time.
2013-08-16 17:02:47 +01:00
James Turner
df4f574951
Fix horizon sunrise/sunset effect position.
...
Fix sun position in default renderer. (Committing fix
provided after discussion on IRC + forum, no bug ID)
2013-08-07 16:30:20 +01:00
James Turner
cff6b2034d
Remove unnecessary includes/using
...
flight.hxx (FGInterface) was pulling in list, string and vector, and
'using' them, despite no actual need.
2013-07-29 22:59:45 +01:00
James Turner
77768e2698
Assume OSG version 3.0 as a minimum
2013-07-29 22:54:25 +01:00
James Turner
be44fa45eb
Kill some defunct uses of side-slip property.
2013-07-29 22:15:23 +01:00
Thomas Geymayer
5b17a6c33f
Canvas GUI: don't crash if enable decoration on window without content canvas
2013-07-27 22:16:00 +02:00
James Turner
0904017ec5
Couple more unused private vars killed off.
2013-07-27 14:49:27 +01:00
Thomas Geymayer
d2524d8fe6
Canvas window: separate handling of content-size and overall size.
2013-07-27 00:01:50 +02:00
Thomas Geymayer
e79e70062e
Canvas window: increase drag accuracy.
2013-07-27 00:01:44 +02:00
Thomas Geymayer
02e66fd034
Canvas GUI: fix updating canvas on window with decoration.
2013-07-27 00:00:33 +02:00
Thomas Geymayer
c3a87f75cd
Canvas GUI: check for window on handling mouse events.
2013-07-25 01:14:23 +02:00
Thomas Geymayer
a75b9e5de9
Expose canvas GUI "desktop" to Nasal.
...
- Restructure GUIMgr and move most parts to implementation class.
- Expose new (simgear::canvas::Group based) DesktopGroup class
to Nasal.
2013-07-25 00:59:59 +02:00
James Turner
ac8869cd62
Bug #1166 , slow POI parsing.
...
Various tweaks and changes to make it easier to evaluate changes
to the rebuild code. No smoking gun found yet.
2013-07-24 08:53:55 +01:00
James Turner
6810809170
Bug #1166 , tweaking POI.dat parsing.
...
(Doesn't fix the bug alas, but slightly cleaner)
2013-07-24 08:52:59 +01:00
James Turner
3e46c7998c
Additional checks, for waypoint role setting.
...
Added these while investigating a defect, which unfortunately still
remains elusive. But the checks are wise anyway.
2013-07-24 08:51:35 +01:00
James Turner
a1451f592f
Ignore SGGeod altitude when creating BasicWaypt.
...
This logic was only ever causing bad values, all callers which care
about an altitude restriction were setting one explicitly. Thanks to
Curt for spotting it.
2013-07-22 18:11:07 +01:00
James Turner
948aa70af7
Fix native protocol crashes.
...
As part of this, kill off the evil global FDM state, and avoid us
copying FGInterfaces (which is bad since it contains TiedProperties
and an FGGroundCache, neither of which are especially keen on being
copied). Will probably disable copy/assignment on TiedProperties in
a future commit.
2013-07-18 12:01:36 +01:00
Gijs de Rooy
78507bf22e
Suggest NVIDIA Optimus to use the high-end GPU.
2013-07-18 08:51:43 +01:00
hof
8c02a57ff8
Add libdl to FLTK_LIBRARIES when the system supports it. Required for libfltk1.3.
2013-07-18 08:50:22 +01:00
James Turner
bfc7cac7c2
Bump version on development trunk.
2013-07-17 20:29:38 +01:00
James Turner
74e60df295
Work-around for bug 1134, crash with flightplans.
...
When the active waypoint is deleted, and we can't offset the waypoint,
simply switch to the inactive waypoint. This is not ideal but avoids
the crash.
2013-07-17 20:26:48 +01:00
Thomas Geymayer
63f19db028
Expose String::ends_with to Nasal
2013-07-15 22:27:10 +02:00
Thomas Geymayer
ba088d9f1e
Fix warnings identified by gcc.
2013-07-04 23:07:36 +02:00
James Turner
5d9faee463
More unused vars caught by Xcode.
2013-07-04 20:56:04 +01:00
James Turner
6acf1c12fc
Fix unused private vars.
...
Xcode is warning about these, they're a mixture of
copy-pasted code, evolved use (e.g. using a property
node to store state), and so on.
2013-07-04 20:24:56 +01:00
Thomas Geymayer
eb53970768
FGSystemMgr: Do not quit on unknown system.
...
Showing a warning should be enough...
2013-07-04 14:32:56 +02:00
James Turner
b53b3be972
Remove a debug message.
2013-07-04 10:30:04 +01:00
James Turner
ebfe2ee6f5
Bug 1137, handle single-digit runways.
...
rwyprefs.xml sometimes specify runways without a leading '0', which
confuses the ident lookup. Print a message, and fix up such idents at
load time, so '8' -> '08', '3L' -> '03L' which matches our internal
scheme.
2013-07-04 10:30:04 +01:00
James Turner
a65f24c137
Bug 1153, guard against no current waypoint.
...
This is a work-around, probably indicates some glitch in the traffic
module flight-plans. Avoid a crash, also refine the exception logic
so individual AI objects can fail.
2013-07-04 10:30:04 +01:00
Thomas Geymayer
8ccc1c4d35
Canvas Event: expose currentTarget to Nasal.
2013-07-04 00:56:32 +02:00
James Turner
55d6d09524
Fix bug 864 - moving the 2D panel around.
...
Bounding box wasn't being dirtied when changing the transform,
breaking picking visitor for the panel. Add listeners to the relevant
props so we can tell OSG when the panel transform changes.
2013-07-03 08:57:48 +01:00
James Turner
05572cbb3e
Speculative fix for bug 1149, AI traffic on helipads.
...
Avoid helipads when doing runway choice fallback.
http://code.google.com/p/flightgear-bugs/issues/detail?id=1149
2013-06-30 16:48:14 +01:00
James Turner
1924bdfd82
Bug 550 / 454 work (not yet fully fixed)
...
Adding a spherical projection mode which will work at the poles and
+180/-180 line correctly. Not yet enabled since it has other issues to
be addressed.
2013-06-30 16:41:05 +01:00
Thomas Geymayer
73456b05b4
Canvas GUI: send mouseleave after mouseup outside original window
2013-06-29 14:36:32 +02:00
Torsten Dreyer
4b92e884a6
Bump version number to 2.12.0
2013-06-28 12:10:16 +02:00
James Turner
7de4cb5965
Kill off some unnecessary log messages.
2013-06-28 10:07:39 +01:00
James Turner
b1b6d2f6e2
Namespace fixes for std::string
2013-06-27 09:53:12 +01:00
James Turner
36896733d7
Kill off timestamp warning for the NavCache
...
This check is no longer needed, and causes console output when
using the joystick config editing GUI, which worries users.
http://code.google.com/p/flightgear-bugs/issues/detail?id=969
2013-06-25 21:53:26 +01:00
James Turner
e5bace53af
Bug http://code.google.com/p/flightgear-bugs/issues/detail?id=1077
...
Fix rotation rate of UFO to compensate for large
dead-band value. (makes small rotational speeds
possible, yay). Patch by Jean Pellotier
2013-06-25 21:47:51 +01:00