- Fix variable town entry and saved item rects not being saved if they referenced an invalid town - Fix "blank" scenario timers being saved - Fix junk data appearing in timers - Output operators for location and rectangle types - Set timer node_type to 2 when loading from town record
19 lines
755 B
C++
19 lines
755 B
C++
|
|
#define CATCH_CONFIG_MAIN
|
|
#include "catch.hpp"
|
|
|
|
// After this are some globals that are referenced from common code but not defined, and not used in the test cases
|
|
#include "graphtool.hpp"
|
|
sf::Texture fields_gworld, anim_gworld, boom_gworld, dlogpics_gworld, items_gworld, missiles_gworld, monst_gworld[NUM_MONST_SHEETS];
|
|
sf::Texture pc_gworld, roads_gworld, small_ter_gworld, status_gworld, talkfaces_gworld, terrain_gworld[NUM_TER_SHEETS];
|
|
sf::Texture tiny_obj_gworld, vehicle_gworld;
|
|
sf::RenderWindow mainPtr;
|
|
fs::path scenario_temp_dir_name = "test_scenario";
|
|
cCustomGraphics spec_scen_g;
|
|
|
|
// And these are referenced from the scenario code, though not used in test cases
|
|
#include "scenario.hpp"
|
|
location cur_out;
|
|
short cur_town;
|
|
cScenario scenario;
|