Skip to content

Commit 3440be2

Browse files
committed
added const for string in forwards
1 parent b95db6a commit 3440be2

5 files changed

Lines changed: 6 additions & 8 deletions

File tree

addons/amxmodx/scripting/include/map_manager.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ forward mapm_prepare_votelist(type);
173173
* @return MAP_ALLOWED
174174
* MAP_BLOCKED
175175
*/
176-
forward mapm_can_be_in_votelist(map[], type, index);
176+
forward mapm_can_be_in_votelist(const map[], type, index);
177177

178178
/**
179179
* Called for permission to extend current map.
@@ -216,4 +216,4 @@ forward mapm_analysis_of_results(type, total_votes);
216216
*
217217
* @noreturn
218218
*/
219-
forward mapm_vote_finished(map[], type, total_votes);
219+
forward mapm_vote_finished(const map[], type, total_votes);

addons/amxmodx/scripting/map_manager_adv_lists.sma

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public plugin_cfg()
6060
copy(list_info[FileList], charsmax(list_info[FileList]), file_list);
6161

6262
ArrayPushArray(g_aLists, list_info);
63-
64-
// server_print("%d %d %s %d", list_info[StartTime], list_info[StopTime], list_info[FileList], list_info[ClearOldList]);
6563
}
6664
fclose(f);
6765

addons/amxmodx/scripting/map_manager_effects.sma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public mapm_vote_started(type)
144144
{
145145
send_audio(0, "sound/Gman/Gman_Choose2.wav", PITCH_NORM);
146146
}
147-
public mapm_vote_finished(map[], type, total_votes)
147+
public mapm_vote_finished(const map[], type, total_votes)
148148
{
149149
if(get_num(BLACK_SCREEN)) {
150150
remove_task(TASK_FULLBLACK);
@@ -180,7 +180,7 @@ stock freeze_unfreeze(type)
180180
set_pev(id, pev_flags, type ? (pev(id, pev_flags) & ~FL_FROZEN) : pev(id, pev_flags) | FL_FROZEN);
181181
}
182182
}
183-
is_map_extended(map[])
183+
is_map_extended(const map[])
184184
{
185185
static curmap[MAPNAME_LENGTH];
186186
if(!curmap[0]) {

addons/amxmodx/scripting/map_manager_online_sorter.sma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public mapm_prepare_votelist(type)
5959

6060
ArrayDestroy(array);
6161
}
62-
public mapm_can_be_in_votelist(map[], type, index)
62+
public mapm_can_be_in_votelist(const map[], type, index)
6363
{
6464
// add online checks for another addons?
6565

addons/amxmodx/scripting/map_manager_scheduler.sma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public mapm_analysis_of_results(type, total_votes)
411411

412412
return ABORT_VOTE;
413413
}
414-
public mapm_vote_finished(map[], type, total_votes)
414+
public mapm_vote_finished(const map[], type, total_votes)
415415
{
416416
if(g_fOldTimeLimit > 0.0) {
417417
set_float(TIMELIMIT, g_fOldTimeLimit);

0 commit comments

Comments
 (0)