From: Mario Date: Sat, 24 Jan 2015 07:47:09 +0000 (+1100) Subject: Figured out why it crashed, time to fix the other leaks X-Git-Tag: xonotic-v0.8.1~133^2~47^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b003040ea7a2b4eade4969f6c17f014e2933121;p=xonotic%2Fxonotic-data.pk3dir.git Figured out why it crashed, time to fix the other leaks --- diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 2d8972bef..07cf482f2 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 55e3b7746..0a0d6f940 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 4a8043091..d2b1395e8 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];