mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 10:31:42 +00:00
Stub netgame support; ignore bots on linedef special
This commit is contained in:
parent
0c72d7e70a
commit
7deeb8bac4
2 changed files with 9 additions and 1 deletions
|
@ -2229,6 +2229,13 @@ void F_StartTextPrompt(INT32 promptnum, INT32 pagenum, mobj_t *mo, UINT16 postex
|
||||||
if (promptactive && splitscreen && promptnum == callpromptnum && pagenum == callpagenum)
|
if (promptactive && splitscreen && promptnum == callpromptnum && pagenum == callpagenum)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// \todo proper netgame support
|
||||||
|
if (netgame)
|
||||||
|
{
|
||||||
|
F_EndTextPrompt(true, false); // run the post-effects immediately
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// We share vars, so no starting text prompts over cutscenes or title screens!
|
// We share vars, so no starting text prompts over cutscenes or title screens!
|
||||||
keypressed = false;
|
keypressed = false;
|
||||||
finalecount = 0;
|
finalecount = 0;
|
||||||
|
|
|
@ -3760,13 +3760,14 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
|
|
||||||
case 459: // Control Text Prompt
|
case 459: // Control Text Prompt
|
||||||
// console player only unless NOCLIMB is set
|
// console player only unless NOCLIMB is set
|
||||||
if ((line->flags & ML_NOCLIMB) || (mo && mo->player && P_IsLocalPlayer(mo->player)))
|
if (mo && mo->player && P_IsLocalPlayer(mo->player) && (!bot || bot != mo))
|
||||||
{
|
{
|
||||||
INT32 promptnum = max(0, (sides[line->sidenum[0]].textureoffset>>FRACBITS)-1);
|
INT32 promptnum = max(0, (sides[line->sidenum[0]].textureoffset>>FRACBITS)-1);
|
||||||
INT32 pagenum = max(0, (sides[line->sidenum[0]].rowoffset>>FRACBITS)-1);
|
INT32 pagenum = max(0, (sides[line->sidenum[0]].rowoffset>>FRACBITS)-1);
|
||||||
INT32 postexectag = abs((line->sidenum[1] != 0xFFFF) ? sides[line->sidenum[1]].textureoffset>>FRACBITS : line->tag);
|
INT32 postexectag = abs((line->sidenum[1] != 0xFFFF) ? sides[line->sidenum[1]].textureoffset>>FRACBITS : line->tag);
|
||||||
|
|
||||||
boolean closetextprompt = (line->flags & ML_BLOCKMONSTERS);
|
boolean closetextprompt = (line->flags & ML_BLOCKMONSTERS);
|
||||||
|
//boolean allplayers = (line->flags & ML_NOCLIMB);
|
||||||
boolean runpostexec = (line->flags & ML_EFFECT1);
|
boolean runpostexec = (line->flags & ML_EFFECT1);
|
||||||
boolean blockcontrols = !(line->flags & ML_EFFECT2);
|
boolean blockcontrols = !(line->flags & ML_EFFECT2);
|
||||||
boolean freezerealtime = !(line->flags & ML_EFFECT3);
|
boolean freezerealtime = !(line->flags & ML_EFFECT3);
|
||||||
|
|
Loading…
Reference in a new issue