Skip to content

Commit

Permalink
All Games: Moved the macro INRANGEOF into doomdef.h/h2def.h
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Jun 25, 2008
1 parent 46b3e36 commit 28058b9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/plugins/jdoom/include/doomdef.h
Expand Up @@ -72,6 +72,7 @@ extern game_export_t gx;

// Misc macros.
#define CLAMP(v, min, max) (v < min? v=min : v > max? v=max : v)
#define INRANGEOF(x, y, r) ((x) >= (y) - (r) && (x) <= (y) + (r))

/**
* Game mode handling - identify IWAD version to handle IWAD dependant
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/jdoom64/include/doomdef.h
Expand Up @@ -68,6 +68,7 @@

// Misc macros.
#define CLAMP(v, min, max) (v < min? v=min : v > max? v=max : v)
#define INRANGEOF(x, y, r) ((x) >= (y) - (r) && (x) <= (y) + (r))

/**
* Game mode handling - identify IWAD version to handle IWAD dependant
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/jheretic/include/doomdef.h
Expand Up @@ -74,6 +74,7 @@

// Misc macros.
#define CLAMP(v, min, max) (v < min? v=min : v > max? v=max : v)
#define INRANGEOF(x, y, r) ((x) >= (y) - (r) && (x) <= (y) + (r))

extern game_import_t gi;
extern game_export_t gx;
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/jhexen/include/h2def.h
Expand Up @@ -79,6 +79,7 @@

// Misc macros.
#define CLAMP(v, min, max) (v < min? v=min : v > max? v=max : v)
#define INRANGEOF(x, y, r) ((x) >= (y) - (r) && (x) <= (y) + (r))

extern game_import_t gi;
extern game_export_t gx;
Expand Down
1 change: 1 addition & 0 deletions doomsday/plugins/wolftc/include/doomdef.h
Expand Up @@ -57,6 +57,7 @@

// Misc macros.
#define CLAMP(v, min, max) (v < min? v=min : v > max? v=max : v)
#define INRANGEOF(x, y, r) ((x) >= (y) - (r) && (x) <= (y) + (r))

extern game_import_t gi;
extern game_export_t gx;
Expand Down

0 comments on commit 28058b9

Please sign in to comment.