And while we are at it, we should get rid of this ugliness:

  } else if ( tokens[1] == "set-sea-level-air-temp-degc" ) {
  [...]
  } else if ( tokens[1] == "set-outside-air-temp-degc" ) {
  [...]
  } else if ( tokens[1] == "timeofday" ) {
  [...]
  } else if ( tokens[1] == "play-audio-message" ) {

This does really not belong into the telnet interface (IMHO).
A simple "set /whatever/property value" can do the same, and if special
actions are required, then a listener function should do the job.

m.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to