Include r_skins.h instead of r_things.h in many files where all they wanted from it was skins stuff

(oddly enough, this actually revealed some secret file dependencies previously included via r_things.h! I also needed to include d_player.h in r_skins.h itself it seems)
This commit is contained in:
Monster Iestyn 2020-03-09 13:54:56 +00:00
parent 1dd4ed4afa
commit f4cb6e1f5e
21 changed files with 22 additions and 18 deletions

View file

@ -22,7 +22,7 @@
#include "g_input.h" #include "g_input.h"
#include "m_menu.h" #include "m_menu.h"
#include "r_local.h" #include "r_local.h"
#include "r_things.h" #include "r_skins.h"
#include "p_local.h" #include "p_local.h"
#include "p_setup.h" #include "p_setup.h"
#include "s_sound.h" #include "s_sound.h"

View file

@ -31,6 +31,7 @@
#include "r_data.h" #include "r_data.h"
#include "r_draw.h" #include "r_draw.h"
#include "r_patch.h" #include "r_patch.h"
#include "r_things.h" // R_Char2Frame
#include "r_sky.h" #include "r_sky.h"
#include "fastcmp.h" #include "fastcmp.h"
#include "lua_script.h" #include "lua_script.h"

View file

@ -16,6 +16,7 @@
#include "i_video.h" #include "i_video.h"
#include "v_video.h" #include "v_video.h"
#include "r_state.h" // fadecolormap
#include "r_draw.h" // transtable #include "r_draw.h" // transtable
#include "p_pspr.h" // tr_transxxx #include "p_pspr.h" // tr_transxxx
#include "p_local.h" #include "p_local.h"

View file

@ -38,7 +38,7 @@
#include "byteptr.h" #include "byteptr.h"
#include "i_joy.h" #include "i_joy.h"
#include "r_local.h" #include "r_local.h"
#include "r_things.h" #include "r_skins.h"
#include "y_inter.h" #include "y_inter.h"
#include "v_video.h" #include "v_video.h"
#include "dehacked.h" // get_number (for ghost thok) #include "dehacked.h" // get_number (for ghost thok)

View file

@ -28,7 +28,7 @@
#include "../tables.h" #include "../tables.h"
#include "../sounds.h" #include "../sounds.h"
#include "../r_main.h" #include "../r_main.h"
#include "../r_things.h" #include "../r_skins.h"
#include "../m_random.h" #include "../m_random.h"
#include "../p_local.h" #include "../p_local.h"
#include "hw3dsdrv.h" #include "hw3dsdrv.h"

View file

@ -21,7 +21,7 @@
#include "z_zone.h" #include "z_zone.h"
#include "r_main.h" #include "r_main.h"
#include "r_draw.h" #include "r_draw.h"
#include "r_things.h" #include "r_things.h" // R_Frame2Char etc
#include "m_random.h" #include "m_random.h"
#include "s_sound.h" #include "s_sound.h"
#include "g_game.h" #include "g_game.h"

View file

@ -15,7 +15,7 @@
#include "doomstat.h" #include "doomstat.h"
#include "p_mobj.h" #include "p_mobj.h"
#include "g_game.h" #include "g_game.h"
#include "r_things.h" #include "r_skins.h"
#include "b_bot.h" #include "b_bot.h"
#include "z_zone.h" #include "z_zone.h"

View file

@ -13,7 +13,7 @@
#include "doomdef.h" #include "doomdef.h"
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
#include "fastcmp.h" #include "fastcmp.h"
#include "r_things.h" #include "r_skins.h"
#include "p_local.h" #include "p_local.h"
#include "g_game.h" #include "g_game.h"
#include "p_setup.h" #include "p_setup.h"

View file

@ -13,7 +13,7 @@
#include "doomdef.h" #include "doomdef.h"
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
#include "fastcmp.h" #include "fastcmp.h"
#include "r_things.h" #include "r_skins.h"
#include "sounds.h" #include "sounds.h"
#include "lua_script.h" #include "lua_script.h"

View file

@ -18,7 +18,7 @@
#include "v_video.h" // video flags #include "v_video.h" // video flags
#include "g_game.h" // record info #include "g_game.h" // record info
#include "r_things.h" // numskins #include "r_skins.h" // numskins
#include "r_draw.h" // R_GetColorByName #include "r_draw.h" // R_GetColorByName
// Map triggers for linedef executors // Map triggers for linedef executors

View file

@ -15,9 +15,10 @@
#ifndef __X_MENU__ #ifndef __X_MENU__
#define __X_MENU__ #define __X_MENU__
#include "doomstat.h" // for NUMGAMETYPES
#include "d_event.h" #include "d_event.h"
#include "command.h" #include "command.h"
#include "r_things.h" // for SKINNAMESIZE #include "r_skins.h" // for SKINNAMESIZE
#include "f_finale.h" // for ttmode_enum #include "f_finale.h" // for ttmode_enum
// //

View file

@ -21,7 +21,7 @@
#include "s_sound.h" #include "s_sound.h"
#include "m_random.h" #include "m_random.h"
#include "m_misc.h" #include "m_misc.h"
#include "r_things.h" #include "r_skins.h"
#include "i_video.h" #include "i_video.h"
#include "z_zone.h" #include "z_zone.h"
#include "lua_hook.h" #include "lua_hook.h"

View file

@ -19,7 +19,7 @@
#include "p_local.h" #include "p_local.h"
#include "p_setup.h" #include "p_setup.h"
#include "r_main.h" #include "r_main.h"
#include "r_things.h" #include "r_skins.h"
#include "r_sky.h" #include "r_sky.h"
#include "r_splats.h" #include "r_splats.h"
#include "s_sound.h" #include "s_sound.h"

View file

@ -22,7 +22,7 @@
#include "p_setup.h" #include "p_setup.h"
#include "p_saveg.h" #include "p_saveg.h"
#include "r_data.h" #include "r_data.h"
#include "r_things.h" #include "r_skins.h"
#include "r_state.h" #include "r_state.h"
#include "w_wad.h" #include "w_wad.h"
#include "y_inter.h" #include "y_inter.h"

View file

@ -27,7 +27,7 @@
#include "i_system.h" #include "i_system.h"
#include "r_data.h" #include "r_data.h"
#include "r_things.h" #include "r_things.h" // for R_AddSpriteDefs
#include "r_patch.h" #include "r_patch.h"
#include "r_sky.h" #include "r_sky.h"
#include "r_draw.h" #include "r_draw.h"

View file

@ -36,7 +36,7 @@
#include "m_cond.h" //unlock triggers #include "m_cond.h" //unlock triggers
#include "lua_hook.h" // LUAh_LinedefExecute #include "lua_hook.h" // LUAh_LinedefExecute
#include "f_finale.h" // control text prompt #include "f_finale.h" // control text prompt
#include "r_things.h" // skins #include "r_skins.h" // skins
#ifdef HW3SOUND #ifdef HW3SOUND
#include "hardware/hw3sound.h" #include "hardware/hw3sound.h"

View file

@ -22,7 +22,7 @@
#include "p_local.h" #include "p_local.h"
#include "r_main.h" #include "r_main.h"
#include "s_sound.h" #include "s_sound.h"
#include "r_things.h" #include "r_skins.h"
#include "d_think.h" #include "d_think.h"
#include "r_sky.h" #include "r_sky.h"
#include "p_setup.h" #include "p_setup.h"

View file

@ -16,6 +16,7 @@
#include "info.h" #include "info.h"
#include "sounds.h" #include "sounds.h"
#include "d_player.h" // skinflags
#include "r_patch.h" // spriteinfo_t #include "r_patch.h" // spriteinfo_t
#include "r_defs.h" // spritedef_t #include "r_defs.h" // spritedef_t

View file

@ -27,7 +27,7 @@ extern INT32 msg_id;
#include "g_game.h" #include "g_game.h"
#include "m_argv.h" #include "m_argv.h"
#include "r_main.h" // R_PointToAngle2() used to calc stereo sep. #include "r_main.h" // R_PointToAngle2() used to calc stereo sep.
#include "r_things.h" // for skins #include "r_skins.h" // for skins
#include "i_system.h" #include "i_system.h"
#include "i_sound.h" #include "i_sound.h"
#include "s_sound.h" #include "s_sound.h"

View file

@ -15,7 +15,7 @@
#include "i_sound.h" #include "i_sound.h"
#include "sounds.h" #include "sounds.h"
#include "r_defs.h" #include "r_defs.h"
#include "r_things.h" #include "r_skins.h"
#include "z_zone.h" #include "z_zone.h"
#include "w_wad.h" #include "w_wad.h"
#include "lua_script.h" #include "lua_script.h"

View file

@ -19,7 +19,7 @@
#include "i_video.h" #include "i_video.h"
#include "p_tick.h" #include "p_tick.h"
#include "r_defs.h" #include "r_defs.h"
#include "r_things.h" #include "r_skins.h"
#include "s_sound.h" #include "s_sound.h"
#include "st_stuff.h" #include "st_stuff.h"
#include "v_video.h" #include "v_video.h"