From cf960c407ab60b5179d8085e6f7461288aef6e19 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 10 Apr 2017 04:52:02 -0500 Subject: cleaned up a bit of stuff and added another option to config.h --- src/config.h | 1 + src/graphics_c2.c | 9 ++++++++- src/graphics_c3.c | 1 - src/graphics_cs_x11.c | 17 +++++++++-------- src/hackvr.c | 18 ++++-------------- src/testit.sh | 11 ++++++----- 6 files changed, 28 insertions(+), 29 deletions(-) diff --git a/src/config.h b/src/config.h index 2ef2d1a..613f458 100644 --- a/src/config.h +++ b/src/config.h @@ -18,5 +18,6 @@ #define DEFAULT_MINIMAP 0 #define FORCE_REDRAW 1 #define MAXSHAPES 3000 +#define ROTATE_STEP 5 #endif diff --git a/src/graphics_c2.c b/src/graphics_c2.c index 17f1828..00d3d70 100644 --- a/src/graphics_c2.c +++ b/src/graphics_c2.c @@ -32,7 +32,14 @@ void draw_c2_shape(c2_s_t s) { } void draw_c2_filled_shape(c2_s_t s) { - draw_c2_shape(s);//heh. TODO: fixme + int i; + cs_s_t ss; + ss.len=s.len; + ss.id=s.id; + for(i=0;i