Rev 83 | Rev 87 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 83 | Rev 85 | ||
|---|---|---|---|
| Line 374... | Line 374... | ||
| 374 | 374 | ||
| 375 | // if we have a spinning wheel, update scene too |
375 | // if we have a spinning wheel, update scene too |
| 376 | if (the_scene.gui.want_spinwheel) |
376 | if (the_scene.gui.want_spinwheel) |
| 377 | the_scene.update = true; |
377 | the_scene.update = true; |
| 378 | 378 | ||
| - | 379 | // is our theme not loaded yet ? |
|
| - | 380 | if (!theme->is_loaded) |
|
| - | 381 | Theme_LoadABitMore (theme); // load a bit more of it |
|
| - | 382 | ||
| 379 | // do we NOT need to update the scene ? |
383 | // else do we NOT need to update the scene ? |
| 380 | if (!the_scene.update) |
384 | else if (!(the_scene.update || want_framerate)) |
| 381 | { |
385 | { |
| 382 | // cycle through all themes and see if one of them needs to be loaded |
386 | // cycle through all themes and see if one of them needs to be loaded |
| 383 | for (array_index = 0; array_index < theme_count; array_index++) |
387 | for (array_index = 0; array_index < theme_count; array_index++) |
| 384 | if (!themes[array_index].is_loaded) |
388 | if (!themes[array_index].is_loaded) |
| 385 | { |
389 | { |
| 386 |
|
390 | Theme_LoadABitMore (&themes[array_index]); // load a bit more of this theme |
| 387 | break; // and stop looping (see you next pass) |
391 | break; // and stop looping (see you next pass) |
| 388 | } |
392 | } |
| 389 | } |
393 | } |
| 390 | 394 | ||
| 391 | // |
395 | // either we need to update the scene, or we want to do it continuously |
| 392 |
|
396 | else |
| 393 | { |
397 | { |
| 394 | Scene_Update (&the_scene, &the_board); // evaluate which parts need to be placed |
398 | Scene_Update (&the_scene, &the_board); // evaluate which parts need to be placed |
| 395 | Render_RenderFrame (&the_scene); // render a game frame |
399 | Render_RenderFrame (&the_scene); // render a game frame |
| 396 | 400 | ||
| 397 | the_scene.update = false; // scene no longer needs to be updated now |
401 | the_scene.update = false; // scene no longer needs to be updated now |