rename 'error' to 'fatal', add 'error' which just logs

mainly because we sometimes would like to just write an error without
terminating the program
This commit is contained in:
2025-03-18 14:50:31 +01:00
parent 972aeb61e7
commit 6e6e05c48c
5 changed files with 18 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ static renderdata rdat;
static void init(void) {
// initialize SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
error(ERROR_SDL_INIT, __FILE_NAME__, __LINE__, "SDL could not initialize! SDL Error: %s", SDL_GetError());
fatal(ERROR_SDL_INIT, __FILE_NAME__, __LINE__, "SDL could not initialize! SDL Error: %s", SDL_GetError());
// initialize other game components
gt = gametime_new();