From 1dc655df5a68bcc00cef1b473674908294e0750c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 25 Mar 2021 10:57:16 +0100 Subject: [PATCH] color fixup (header) --- hyper.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hyper.h b/hyper.h index 6d94c52d..0e20e956 100644 --- a/hyper.h +++ b/hyper.h @@ -752,8 +752,6 @@ enum orbAction { roMouse, roKeyboard, roCheck, roMouseForce, roMultiCheck, roMul #endif #define pmodel (pconf.model) -color_t darkena(color_t c, int lev, int a); - static const int DISTANCE_UNKNOWN = 127; template int addHook(hookset& m, int prio, U&& hook) { @@ -776,13 +774,6 @@ string XLAT(string); #define GLERR(call) glError(call, __FILE__, __LINE__) -struct colortable: vector { - color_t& operator [] (int i) { i %= size(); if(i<0) i += size(); return ((vector&)(*this)) [i]; } - const color_t& operator [] (int i) const { i %= size(); if(i<0) i += size(); return ((vector&)(*this)) [i]; } - colortable(std::initializer_list v) : vector(v) {} - colortable() : vector({0}) {} - }; - #define SHMUPTITLE "shoot'em up mode" // check for a plain number key @@ -900,8 +891,6 @@ template ld binsearch(ld dmin, ld dmax, const T& f) { return dmin; } -static const color_t NOCOLOR = 0; - static const int max_vec = (1<<14); extern bool needConfirmationEvenIfSaved();