Thanks Csaba,
With ( current - _lastNewAction ).toMSecs() :
actionmgr.cpp:115: error: invalid cast from type ‘SGTimeStamp’ to
type ‘double’
With current.toMSecs() - _lastNewAction.toMSecs() :
It compiles!!!
...well, after some half a dozen more fixes...
You are my new best friend. Thank you very much :-)
Csaba Halász wrote:
On Tue, Apr 20, 2010 at 12:31 PM, Mattt <ma...@mattts.net> wrote:
actionmgr.cpp:115: error: invalid cast from type ‘SGTimeStamp’ to type
‘double’
...so I've tried all sorts of ways to add .toMSecs(). Nothing is working.
timestamp.hxx has line 136:
double toMSecs() const
(See
http://cvs.flightgear.org/viewvc/source/simgear/timing/timestamp.hxx?annotate=1.7&root=SimGear)
So, .toMSecs() should have worked like this:
( current - _lastNewAction ).toMSecs()
Alternatively, you could try:
current.toMSecs() - _lastNewAction.toMSecs()
If these don't work, please post the new error message.
--
Cheers,
Mattt.
SpotSafe - WiFi Hotspot solution - http://spotsafe.net
There are only 10 kinds of people.
Those who understand binary, and those that don't...
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel