X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fgeneric.qc;h=b7b8da0e9f407f64da0bab06bc3dae90c7d4c528;hb=dbcdd58814a7281aef637c8c07a02242331c4c86;hp=73fe45c406ab789e195718107e801a4ac5f91a6f;hpb=ad8df795b370d4df3665802518676a170bc5ed2d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/generic.qc b/qcsrc/common/command/generic.qc index 73fe45c40..b7b8da0e9 100644 --- a/qcsrc/common/command/generic.qc +++ b/qcsrc/common/command/generic.qc @@ -263,6 +263,7 @@ void GenericCommand_maplist(float request, float argc) MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 0); argc = tokenizebyseparator(cvar_string("g_maplist"), " "); + tmp_string = ""; for(i = 0; i < argc; ++i) if(MapInfo_CheckMap(argv(i))) tmp_string = strcat(tmp_string, " ", argv(i)); @@ -279,6 +280,7 @@ void GenericCommand_maplist(float request, float argc) { argc = tokenizebyseparator(cvar_string("g_maplist"), " "); + tmp_string = ""; for(i = 0; i < argc; ++i) if(argv(i) != argv(2)) tmp_string = strcat(tmp_string, " ", argv(i)); @@ -349,6 +351,7 @@ void GenericCommand_removefromlist(float request, float argc) argc = tokenizebyseparator(cvar_string(original_cvar), " "); + tmp_string = ""; for(i = 0; i < argc; ++i) if(argv(i) != removal) tmp_string = strcat(tmp_string, " ", argv(i));