This is the function called by TelCom return true if TelCom should exit to TelCom Main Menu return false if you should exit out of TelCom completly mmonitor = main monitor class lmonitor = local monitor class (the monitor at the top of the screen)
| 266 | // mmonitor = main monitor class |
| 267 | // lmonitor = local monitor class (the monitor at the top of the screen) |
| 268 | bool TelComAutoMap(tTelComInfo *tcs) { |
| 269 | bool done = false; |
| 270 | |
| 271 | if (!AM_rotated_points) { |
| 272 | AM_rotated_points = (g3Point *)mem_malloc(sizeof(g3Point) * MAX_VERTS_PER_ROOM); |
| 273 | } |
| 274 | AM_tcs = tcs; |
| 275 | AM_current_marker = -1; |
| 276 | TelComEnableSystemKey(TCSYS_MAXKEYS, false); // disable all telcom system keys |
| 277 | TelComEnableSystemKey(TCSYS_F1, true); // enable F1 and enter, those are all we may need in automap |
| 278 | TelComEnableSystemKey(TCSYS_F2, true); // enable F2 and enter, those are all we may need in automap |
| 279 | TelComEnableSystemKey(TCSYS_F3, true); // enable F3 and enter, those are all we may need in automap |
| 280 | TelComEnableSystemKey(TCSYS_1, true); // enable marker key |
| 281 | TelComEnableSystemKey(TCSYS_2, true); // enable marker key |
| 282 | TelComEnableSystemKey(TCSYS_3, true); // enable marker key |
| 283 | TelComEnableSystemKey(TCSYS_4, true); // enable marker key |
| 284 | TelComEnableSystemKey(TCSYS_5, true); // enable marker key |
| 285 | TelComEnableSystemKey(TCSYS_6, true); // enable marker key |
| 286 | TelComEnableSystemKey(TCSYS_7, true); // enable marker key |
| 287 | TelComEnableSystemKey(TCSYS_8, true); // enable marker key |
| 288 | TelComEnableSystemKey(TCSYS_ENTER, true); // processing other keys is a waste of cpu |
| 289 | TelComEnableSystemKey(TCSYS_PRINTSCRN, true); |
| 290 | |
| 291 | // Classify faces |
| 292 | ClassifyAMFaces(); |
| 293 | |
| 294 | // Load ship model |
| 295 | AM_ship_model_handle = LoadPolyModel("automapship.oof", 0); |
| 296 | |
| 297 | // Setup intial pos/orient |
| 298 | TCAMCenterOnPlayer(); |
| 299 | if (OBJECT_OUTSIDE(Viewer_object)) { |
| 300 | AM_terrain = 1; |
| 301 | } |
| 302 | |
| 303 | TelcomStartScreen(0); |
| 304 | |
| 305 | // setup general background, plain color |
| 306 | TCBKGDESC backg; |
| 307 | backg.color = BACKGROUND_COLOR; |
| 308 | backg.caps = TCBGD_COLOR; |
| 309 | backg.type = TC_BACK_STATIC; |
| 310 | |
| 311 | /*//load up the "fake automap" <----Start Remove----> |
| 312 | TCBMPDESC bmpdesc; |
| 313 | bmpdesc.type = TC_BMP_STATIC; |
| 314 | bmpdesc.flags = 0; |
| 315 | bmpdesc.caps=TCBD_XY; |
| 316 | bmpdesc.x = 0; bmpdesc.y = 0; |
| 317 | strcpy(bmpdesc.filename,"TCMap.ogf"); |
| 318 | // <----End Remove ---->*/ |
| 319 | |
| 320 | // setup text for the top monitor "Automap" |
| 321 | TCTEXTDESC textdesc; |
| 322 | textdesc.type = TC_TEXT_STATIC; |
| 323 | textdesc.font = BBRIEF_FONT_INDEX; |
| 324 | textdesc.caps = TCTD_TEXTBOX | TCTD_COLOR | TCTD_FONT; |
| 325 | textdesc.textbox.left = 65; |
no test coverage detected