program_run now does not return anything

This commit is contained in:
Sara 2023-11-11 12:58:05 +01:00
parent fb53954205
commit 8f4de070a9
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ void play() {
g_camera.fov = 40;
player = player_new();
player_spawn(player, (Vector){8.25f, 15.f});
player_spawn(player, (Vector){2.25f, 15.f});
level = level_load("level_0");
}
@ -37,5 +37,5 @@ int main(int argc, char* argv[]) {
.on_tick = &tick,
.on_draw = &draw
};
return program_run(&config);
program_run(&config);
}

View file

@ -35,7 +35,7 @@ double get_time_s() {
return tstos(get_time());
}
int program_run(const struct ProgramSettings* settings) {
void program_run(const struct ProgramSettings* settings) {
LOG_INFO("Starting program...");
if(settings->target_fps <= 0) {
_target_delta_time = 0;
@ -85,7 +85,7 @@ int program_run(const struct ProgramSettings* settings) {
SDL_Delay(1);
}
LOG_ERROR("Failed to exit");
ASSERT_RETURN(0,, "Program escaped containment, nuking from orbit...");
abort();
}