r_refdef.drawqueuesize += dq->size;
}
-void DrawQ_String(float x, float y, char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags)
+void DrawQ_String(float x, float y, const char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags)
{
int size, len;
drawqueue_t *dq;
// draw an image
void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
// draw a text string
-void DrawQ_String(float x, float y, char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags);
+void DrawQ_String(float x, float y, const char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags);
// draw a filled rectangle
void DrawQ_Fill (float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
// draw a triangle mesh
if (cls.state == ca_dedicated)
{
- if (!sv.active)
+ if (!sv.active && !sv_spawnmap[0])
Cbuf_AddText ("map start\n");
return;
}
DrawQ_String(menu_x + cx, menu_y + cy, str, 0, 8, 8, 1, 1, 1, 1, 0);
}
-void M_PrintWhite (float cx, float cy, char *str)
+void M_PrintWhite (float cx, float cy, const char *str)
{
DrawQ_String(menu_x + cx, menu_y + cy, str, 0, 8, 8, 1, 1, 1, 1, 0);
}
M_Print (x, 146, " More than 64 players?? ");
M_Print (x, 154, " First, question your ");
M_Print (x, 162, " sanity, then email ");
- M_Print (x, 170, " havoc@gamevisions.com ");
+ M_Print (x, 170, " havoc@inside3d.com ");
}
else
{
void M_Search_Draw (void)
{
+ const char* string;
cachepic_t *p;
int x;
return;
}
- M_PrintWhite ((320/2) - ((22*8)/2), 64, "No Quake servers found");
+ if (gamemode == GAME_TRANSFUSION)
+ string = "No Transfusion servers found";
+ else
+ string = "No Quake servers found";
+ M_PrintWhite ((320/2) - ((22*8)/2), 64, string);
if ((realtime - searchCompleteTime) < 3.0)
return;
void M_InetSearch_Draw (void)
{
- cachepic_t *p;
- int x;
-
- p = Draw_CachePic ("gfx/p_multi.lmp");
- M_DrawPic ( (320-p->width)/2, 4, "gfx/p_multi.lmp");
- x = (320/2) - ((12*8)/2) + 4;
- M_DrawTextBox (x-8, 32, 12, 1);
- M_Print (x, 40, "Searching...");
-
- if(slistInProgress)
- {
- NET_Poll();
- return;
- }
-
- if (! searchComplete)
- {
- searchComplete = true;
- searchCompleteTime = realtime;
- }
-
- if (hostCacheCount)
- {
- M_Menu_ServerList_f ();
- return;
- }
-
- M_PrintWhite ((320/2) - ((22*8)/2), 64, "No Quake servers found");
- if ((realtime - searchCompleteTime) < 3.0)
- return;
-
- M_Menu_LanConfig_f ();
+ M_Search_Draw (); // it's the same one, so why bother?
}
if (hostCacheCount)
Con_Printf("== end list ==\n\n");
else
- Con_Printf("No Quake servers found.\n\n");
+ {
+ if (gamemode == GAME_TRANSFUSION)
+ Con_Printf("No Transfusion servers found.\n\n");
+ else
+ Con_Printf("No Quake servers found.\n\n");
+ }
}
-void NET_Slist_f (void)
+void NET_SlistCommon (PollProcedure *sendProcedure, PollProcedure *pollProcedure)
{
if (slistInProgress)
return;
if (! slistSilent)
{
- Con_Printf("Looking for Quake servers...\n");
+ if (gamemode == GAME_TRANSFUSION)
+ Con_Printf("Looking for Transfusion servers...\n");
+ else
+ Con_Printf("Looking for Quake servers...\n");
PrintSlistHeader();
}
slistInProgress = true;
slistStartTime = Sys_DoubleTime();
- SchedulePollProcedure(&slistSendProcedure, 0.0);
- SchedulePollProcedure(&slistPollProcedure, 0.1);
+ SchedulePollProcedure(sendProcedure, 0.0);
+ SchedulePollProcedure(pollProcedure, 0.1);
hostCacheCount = 0;
}
-void NET_InetSlist_f (void)
+void NET_Slist_f (void)
{
- if (slistInProgress)
- return;
-
- if (! slistSilent)
- {
- Con_Printf("Looking for Quake servers...\n");
- PrintSlistHeader();
- }
-
- slistInProgress = true;
- slistStartTime = Sys_DoubleTime();
+ NET_SlistCommon (&slistSendProcedure, &slistPollProcedure);
+}
- SchedulePollProcedure(&inetSlistSendProcedure, 0.0);
- SchedulePollProcedure(&inetSlistPollProcedure, 0.1);
- hostCacheCount = 0;
+void NET_InetSlist_f (void)
+{
+ NET_SlistCommon (&inetSlistSendProcedure, &inetSlistPollProcedure);
}