From 880e7254c9228b84fab86e8b01b964b3dc407c55 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Fri, 28 Jun 2024 08:03:27 -0600 Subject: [PATCH] Format/include tweaks --- source/bsp_local.h | 2 ++ source/g_doom.cc | 2 +- source/lib_tga.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/bsp_local.h b/source/bsp_local.h index 28209e29d..9301308e4 100644 --- a/source/bsp_local.h +++ b/source/bsp_local.h @@ -20,6 +20,8 @@ #pragma once +#include + #include #include "bsp.h" diff --git a/source/g_doom.cc b/source/g_doom.cc index 732a70869..ab9acc916 100644 --- a/source/g_doom.cc +++ b/source/g_doom.cc @@ -1425,7 +1425,7 @@ bool Doom::game_interface_c::Start(const char *preset) } if (!ZIPF_OpenWrite(zip_filename)) { - ProgStatus("%s", _("Error (create PK3/ZIP)"), zip_filename.c_str()); + ProgStatus("%s", _("Error (create PK3/ZIP)")); return false; } } diff --git a/source/lib_tga.cc b/source/lib_tga.cc index 031b3f76c..1bce9dce9 100644 --- a/source/lib_tga.cc +++ b/source/lib_tga.cc @@ -118,7 +118,7 @@ tga_image_c *TGA_LoadImage(const char *path) if (targa_header.image_type != TGA_INDEXED && targa_header.image_type != TGA_INDEXED_RLE && targa_header.image_type != TGA_RGB && targa_header.image_type != TGA_RGB_RLE) { - FatalError("Bad tga file: type {} is not supported\n", targa_header.image_type); + FatalError("Bad tga file: type %d is not supported\n", targa_header.image_type); } int width = targa_header.width;