MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DestroyOptions

Method DestroyOptions

engine/Poseidon/World/WorldImpl.cpp:316–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314 }
315}
316
317void World::DestroyOptions(int exitCode)
318{
319 if (!_options)
320 {
321 return;
322 }
323 _options.Free();
324 /*
325 switch( exitCode )
326 {
327 case IDC_CANCEL:
328 case IDC_MAIN_GAME:
329 break;
330 case IDC_MAIN_QUIT:
331 Glob.exit=true;
332 break;
333 case IDC_OK:
334 CreateMainOptions();
335 break;
336 }
337 */
338 if (exitCode == IDC_MAIN_QUIT)
339 {
340 Glob.exit = true;
341 }
342
343 GEngine->ReinitCounters();
344}
345
346void World::DestroyMap(int exitCode)

Callers 1

DestroyHUDMethod · 0.80

Calls 2

ReinitCountersMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected