From: Holger Schemel Date: Wed, 28 Feb 2024 19:15:09 +0000 (+0100) Subject: changed some comments X-Git-Tag: 4.4.0.0-test-1~261 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1e17fcacee4a4977ad812bd3d4b864400dbf6d9b;p=rocksndiamonds.git changed some comments --- diff --git a/src/game_bd/import_bd.h b/src/game_bd/import_bd.h index 6d1fa1e8..3104c99b 100644 --- a/src/game_bd/import_bd.h +++ b/src/game_bd/import_bd.h @@ -12,15 +12,19 @@ #ifndef IMPORT_BD_H #define IMPORT_BD_H +// ============================================================================ +// functions and definitions imported from main program to game_bd +// ============================================================================ + #include "../libgame/libgame.h" #include "../game.h" #include "export_bd.h" -// ============================================================================ -// functions and definitions exported from main program to game_bd -// ============================================================================ +// ---------------------------------------------------------------------------- +// imported functions +// ---------------------------------------------------------------------------- void InitGraphicInfo_BD(void); diff --git a/src/game_em/export_em.h b/src/game_em/export_em.h index 8f32dcdb..317b176d 100644 --- a/src/game_em/export_em.h +++ b/src/game_em/export_em.h @@ -88,7 +88,7 @@ struct GraphicInfo_EM boolean has_crumbled_graphics; boolean preserve_background; - int unique_identifier; /* used to identify needed screen updates */ + int unique_identifier; // used to identify needed screen updates }; struct EngineSnapshotInfo_EM diff --git a/src/game_em/import_em.h b/src/game_em/import_em.h index 21acc6bc..44e48c18 100644 --- a/src/game_em/import_em.h +++ b/src/game_em/import_em.h @@ -12,15 +12,19 @@ #ifndef IMPORT_EM_H #define IMPORT_EM_H +// ============================================================================ +// functions and definitions imported from main program to game_em +// ============================================================================ + #include "../libgame/libgame.h" #include "../game.h" #include "export_em.h" -// ============================================================================ -// functions and definitions exported from main program to game_em -// ============================================================================ +// ---------------------------------------------------------------------------- +// imported functions +// ---------------------------------------------------------------------------- void UpdateEngineValues(int, int, int, int); diff --git a/src/game_em/main_em.h b/src/game_em/main_em.h index 0870b040..3bbbcfe0 100644 --- a/src/game_em/main_em.h +++ b/src/game_em/main_em.h @@ -37,18 +37,18 @@ // constant definitions // ---------------------------------------------------------------------------- -/* values for native Emerald Mine game version */ +// values for native Emerald Mine game version #define FILE_VERSION_EM_UNKNOWN 0 #define FILE_VERSION_EM_V1 1 #define FILE_VERSION_EM_V2 2 #define FILE_VERSION_EM_V3 3 -#define FILE_VERSION_EM_V4 4 /* (there really was no version 4) */ +#define FILE_VERSION_EM_V4 4 // (there really was no version 4) #define FILE_VERSION_EM_V5 5 #define FILE_VERSION_EM_V6 6 #define FILE_VERSION_EM_ACTUAL FILE_VERSION_EM_V6 -/* screen sizes and positions for EM engine */ +// screen sizes and positions for EM engine #define TILESIZE 32 @@ -62,14 +62,14 @@ extern int SCR_FIELDX, SCR_FIELDY; #define MAX_BUF_XSIZE (SCR_FIELDX + 2 * CAVE_BUFFER_XOFFSET) #define MAX_BUF_YSIZE (SCR_FIELDY + 2 * CAVE_BUFFER_YOFFSET) -/* often used screen positions */ +// often used screen positions extern int SX, SY; #define SXSIZE (SCR_FIELDX * TILEX) #define SYSIZE (SCR_FIELDY * TILEY) -/* other settings */ +// other settings #define PLAY_ELEMENT_SOUND FALSE diff --git a/src/game_mm/import_mm.h b/src/game_mm/import_mm.h index 5ad8ef6d..07fe0ffe 100644 --- a/src/game_mm/import_mm.h +++ b/src/game_mm/import_mm.h @@ -12,6 +12,10 @@ #ifndef IMPORT_MM_H #define IMPORT_MM_H +// ============================================================================ +// functions and definitions imported from main program to game_mm +// ============================================================================ + #include "../libgame/libgame.h" #include "../conf_gfx.h" #include "../game.h" @@ -19,9 +23,9 @@ #include "export_mm.h" -// ============================================================================ -// functions and definitions exported from main program to game_mm -// ============================================================================ +// ---------------------------------------------------------------------------- +// imported functions +// ---------------------------------------------------------------------------- void SetDrawtoField(int); void BackToFront(void); diff --git a/src/game_sp/import_sp.h b/src/game_sp/import_sp.h index 4f8f3007..1ade8333 100644 --- a/src/game_sp/import_sp.h +++ b/src/game_sp/import_sp.h @@ -12,6 +12,10 @@ #ifndef IMPORT_SP_H #define IMPORT_SP_H +// ============================================================================ +// functions and definitions imported from main program to game_sp +// ============================================================================ + #include "../libgame/libgame.h" #include "../conf_gfx.h" #include "../game.h" @@ -19,9 +23,9 @@ #include "export_sp.h" -// ============================================================================ -// functions and definitions exported from main program to game_sp -// ============================================================================ +// ---------------------------------------------------------------------------- +// imported functions +// ---------------------------------------------------------------------------- void CheckSingleStepMode_SP(boolean, boolean);