From 3b003040ea7a2b4eade4969f6c17f014e2933121 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 24 Jan 2015 18:47:09 +1100 Subject: [PATCH] Figured out why it crashed, time to fix the other leaks --- qcsrc/common/constants.qh | 2 +- qcsrc/menu/xonotic/playermodel.c | 2 +- qcsrc/server/command/getreplies.qh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 2d8972befa..07cf482f27 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -176,7 +176,7 @@ const float SFL_SORT_PRIO_MASK = 12; * Score indices */ #define MAX_SCORE 10 -const float MAX_TEAMSCORE = 2; +#define MAX_TEAMSCORE 2 const float ST_SCORE = 0; const float SP_KILLS = 0; diff --git a/qcsrc/menu/xonotic/playermodel.c b/qcsrc/menu/xonotic/playermodel.c index 55e3b77469..0a0d6f9405 100644 --- a/qcsrc/menu/xonotic/playermodel.c +++ b/qcsrc/menu/xonotic/playermodel.c @@ -43,7 +43,7 @@ const float BUFMODELS_SKIN = 3; const float BUFMODELS_DESC = 4; const float BUFMODELS_COUNT = 5; -const float XONVOTE186 = 1; // (nyov) removal of model text description +#define XONVOTE186 1 // (nyov) removal of model text description void XonoticPlayerModelSelector_configureXonoticPlayerModelSelector(entity me) { diff --git a/qcsrc/server/command/getreplies.qh b/qcsrc/server/command/getreplies.qh index 4a80430911..d2b1395e89 100644 --- a/qcsrc/server/command/getreplies.qh +++ b/qcsrc/server/command/getreplies.qh @@ -5,7 +5,7 @@ // ladder bullshit todo const float LADDER_FIRSTPOINT = 100; -const float LADDER_CNT = 10; // position X still gives LADDER_FIRSTPOINT/X points +#define LADDER_CNT 10 // position X still gives LADDER_FIRSTPOINT/X points const float LADDER_SIZE = 30; // ladder shows the top X players string top_uids[LADDER_SIZE]; -- 2.39.2