]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compilation unit test by changing argument type in the GameTypeVote_SetGametype...
authorterencehill <piuntn@gmail.com>
Fri, 22 Mar 2024 13:50:08 +0000 (14:50 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 22 Mar 2024 13:50:08 +0000 (14:50 +0100)
Same thing has already been done for the isGametypeInFilter prototype.

qcsrc/common/util.qh
qcsrc/server/mapvoting.qh

index 01933cb348323b7090b7b889c85ae2271d55e094..1a1ebdba7fb9593faebb5a13301fe0fc0c59c4e9 100644 (file)
@@ -143,6 +143,7 @@ string getWrappedLine_remaining;
 string getWrappedLine(float w, vector size, textLengthUpToWidth_widthFunction_t tw);
 string getWrappedLineLen(float w, textLengthUpToLength_lenFunction_t tw);
 
+// FIXME can't use Gametype gt because Gitlab compilation unit test fails
 float isGametypeInFilter(entity gt, float tp, float ts, string pattern);
 
 vector solve_shotdirection(vector myorg, vector myvel, vector eorg, vector evel, float spd, float newton_style);
index 41c41060db75a131077e9496829fb6712c642cb5..f2515bdad099cb497ff7010b6cd84ba18310e75b 100644 (file)
@@ -30,7 +30,8 @@ void MapVote_Start();
 void MapVote_Spawn();
 void MapVote_Think();
 void MapVote_SendPicture(entity to, int id);
-bool GameTypeVote_SetGametype(Gametype type, string gametype_string, bool call_hooks);
+// FIXME can't use Gametype type because Gitlab compilation unit test fails
+bool GameTypeVote_SetGametype(entity type, string gametype_string, bool call_hooks);
 float GameTypeVote_Start();
 float GameTypeVote_Finished(int pos);
 string GameTypeVote_MapInfo_FixName(string m);