Changeset 114:0e60b2a26b42 in xplra for test/basictest.cc
- Timestamp:
- 12/23/22 09:34:42 (17 months ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basictest.cc
r112 r114 159 159 printf("\n\n"); 160 160 161 printf("Setting the number of the engines to %d...\n", numEngines + 1); 162 xplane.setInt("sim/aircraft/engine/acf_num_engines", numEngines + 1); 163 numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines"); 164 printf("The new number of engines: %d\n\n", numEngines); 161 if (xplaneVersion<12000 || xplaneVersion>12005) { 162 printf("Setting the number of the engines to %d...\n", numEngines + 1); 163 xplane.setInt("sim/aircraft/engine/acf_num_engines", numEngines + 1); 164 numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines"); 165 printf("The new number of engines: %d\n\n", numEngines); 166 } else { 167 numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines"); 168 printf("Not setting the number of engines, which is: %d\n\n", numEngines); 169 } 165 170 166 171 float acfElevUp = xplane.getFloat("sim/aircraft/controls/acf_elev_up");
Note:
See TracChangeset
for help on using the changeset viewer.