From daefddcf6b41cea46b5c656df72d8853e0ef4c26 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Thu, 30 Jan 2014 18:33:36 +0100 Subject: [PATCH] Add file headers With this commit the game logic is cleaned up. Coop spawnpoint cleanup is still missing, it'll be done at a later time. While not completely finshed, rogue should alread run much more stable than the unmodified code. Please note, that this is still untested! Headers are next, monsters will be done after that. --- src/dm/ball.c | 7 +++++++ src/dm/tag.c | 7 +++++++ src/g_items.c | 3 ++- src/g_main.c | 3 ++- src/g_misc.c | 3 ++- src/g_monster.c | 3 ++- src/g_spawn.c | 7 +++++++ src/g_sphere.c | 8 ++++++++ src/g_svcmds.c | 7 +++++++ src/g_target.c | 7 +++++++ src/g_trigger.c | 7 +++++++ src/g_turret.c | 7 +++++++ src/g_utils.c | 7 +++++++ src/g_weapon.c | 7 +++++++ src/player/client.c | 7 +++++++ src/player/hud.c | 7 +++++++ src/player/trail.c | 7 +++++++ src/player/view.c | 7 +++++++ src/player/weapon.c | 7 +++++++ 19 files changed, 114 insertions(+), 4 deletions(-) diff --git a/src/dm/ball.c b/src/dm/ball.c index d393d69..eb6b7dc 100644 --- a/src/dm/ball.c +++ b/src/dm/ball.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Deathmatch ball. + * + * ======================================================================= + */ + #include "../header/local.h" #define DBALL_GOAL_TEAM1 0x0001 diff --git a/src/dm/tag.c b/src/dm/tag.c index 1c983ff..8579b46 100644 --- a/src/dm/tag.c +++ b/src/dm/tag.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Deathmatch tag. + * + * ======================================================================= + */ + #include "../header/local.h" extern edict_t *SelectFarthestDeathmatchSpawnPoint(void); diff --git a/src/g_items.c b/src/g_items.c index 8830545..d814749 100644 --- a/src/g_items.c +++ b/src/g_items.c @@ -1,4 +1,5 @@ -/* ======================================================================= +/* + * ======================================================================= * * Item handling and item definitions. * diff --git a/src/g_main.c b/src/g_main.c index 4d82662..7673f91 100644 --- a/src/g_main.c +++ b/src/g_main.c @@ -1,4 +1,5 @@ -/* ======================================================================= +/* + * ======================================================================= * * Jump in into the game.so and support functions. * diff --git a/src/g_misc.c b/src/g_misc.c index d8ac26a..573c382 100644 --- a/src/g_misc.c +++ b/src/g_misc.c @@ -1,4 +1,5 @@ -/* ======================================================================= +/* + * ======================================================================= * * Miscellaneos entities, functs and functions. * diff --git a/src/g_monster.c b/src/g_monster.c index 77e7384..a265c40 100644 --- a/src/g_monster.c +++ b/src/g_monster.c @@ -1,4 +1,5 @@ -/* ======================================================================= +/* + * ======================================================================= * * Monster utility functions. * diff --git a/src/g_spawn.c b/src/g_spawn.c index 968e3ab..04b9fb8 100644 --- a/src/g_spawn.c +++ b/src/g_spawn.c @@ -1,3 +1,10 @@ +/* + * ======================================================================= + * + * Item spawning. + * + * ======================================================================= + */ #include "header/local.h" diff --git a/src/g_sphere.c b/src/g_sphere.c index 28ba901..1648323 100644 --- a/src/g_sphere.c +++ b/src/g_sphere.c @@ -1,3 +1,11 @@ +/* + * ======================================================================= + * + * Defender sphere. + * + * ======================================================================= + */ + #include "header/local.h" #define DEFENDER_LIFESPAN 30 diff --git a/src/g_svcmds.c b/src/g_svcmds.c index c291425..7aa7935 100644 --- a/src/g_svcmds.c +++ b/src/g_svcmds.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Game side of server CMDs. At this time only the ipfilter. + * + * ======================================================================= + */ + #include "header/local.h" #define MAX_IPFILTERS 1024 diff --git a/src/g_target.c b/src/g_target.c index b0298cf..f64d6b0 100644 --- a/src/g_target.c +++ b/src/g_target.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Targets. + * + * ======================================================================= + */ + #include "header/local.h" #define LASER_ON 0x0001 diff --git a/src/g_trigger.c b/src/g_trigger.c index 5d73e1c..328d1da 100644 --- a/src/g_trigger.c +++ b/src/g_trigger.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Trigger. + * + * ======================================================================= + */ + #include "header/local.h" #define TRIGGER_MONSTER 0x01 diff --git a/src/g_turret.c b/src/g_turret.c index cd63054..d115af3 100644 --- a/src/g_turret.c +++ b/src/g_turret.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Turrets aka big cannons with a driver. + * + * ======================================================================= + */ + #include "header/local.h" qboolean FindTarget(edict_t *self); diff --git a/src/g_utils.c b/src/g_utils.c index d52fe17..212a44d 100644 --- a/src/g_utils.c +++ b/src/g_utils.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Misc. utility functions for the game logic. + * + * ======================================================================= + */ + #include "header/local.h" #define MAXCHOICES 8 diff --git a/src/g_weapon.c b/src/g_weapon.c index f2900d9..29303db 100644 --- a/src/g_weapon.c +++ b/src/g_weapon.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Weapon support functions. + * + * ======================================================================= + */ + #include "header/local.h" /* diff --git a/src/player/client.c b/src/player/client.c index 59f16bc..986182e 100644 --- a/src/player/client.c +++ b/src/player/client.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Interface between client <-> game and client calculations. + * + * ======================================================================= + */ + #include "../header/local.h" #include "../monster/misc/player.h" diff --git a/src/player/hud.c b/src/player/hud.c index 6c57818..11c30bd 100644 --- a/src/player/hud.c +++ b/src/player/hud.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * HUD, deathmatch scoreboard, help computer and intermission stuff. + * + * ======================================================================= + */ + #include "../header/local.h" void diff --git a/src/player/trail.c b/src/player/trail.c index 32403e5..ecd4af1 100644 --- a/src/player/trail.c +++ b/src/player/trail.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * The player trail, used by monsters to locate the player. + * + * ======================================================================= + */ + #include "../header/local.h" /* diff --git a/src/player/view.c b/src/player/view.c index 6a8e2e5..33bd94d 100644 --- a/src/player/view.c +++ b/src/player/view.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * The "camera" through that the player looks into the game. + * + * ======================================================================= + */ + #include "../header/local.h" #include "../monster/misc/player.h" diff --git a/src/player/weapon.c b/src/player/weapon.c index 137b058..19cc98a 100644 --- a/src/player/weapon.c +++ b/src/player/weapon.c @@ -1,3 +1,10 @@ +/* ======================================================================= + * + * Player weapons. + * + * ======================================================================= + */ + #include "../header/local.h" #include "../monster/misc/player.h"