From a9d508464233ffba2d745ac7296911302c2c8297 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 3 Jan 2011 23:06:23 +0300 Subject: [PATCH] Migrate some more definitions from Constants.h --- Source/Constants.h | 7 ------- Source/GameDraw.cpp | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/Constants.h b/Source/Constants.h index 1b1cd9b..8e9e4cd 100644 --- a/Source/Constants.h +++ b/Source/Constants.h @@ -48,12 +48,5 @@ const int max_dialoguelength = 20; const int max_model_vertex = 3000; // maximum number of vertexs const int max_textured_triangle = 3000; // maximum number of texture-filled triangles in a model -const int normalmode = 0; -const int motionblurmode = 1; -const int radialzoommode = 2; -const int realmotionblurmode = 3; -const int doublevisionmode = 4; -const int glowmode = 5; - const int maxplayers = 10; #endif diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index d5ba862..2b2c8b7 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -132,6 +132,11 @@ extern bool gamestarted; extern bool showdamagebar; +enum drawmodes { + normalmode, motionblurmode, radialzoommode, + realmotionblurmode, doublevisionmode, glowmode, +}; + void Game::flash() { // shouldn't be that way, these should be attributes and Person class should not change rendering. flashr=1; flashg=0; -- 2.39.5