int x = (int)UI()->MouseWorldX() / 32;
int y = (int)UI()->MouseWorldY() / 32;
this selects the layer correctly for me even if the group has offset and parallaxname: Compile server
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install bam
run: sudo apt install bam=0.4.0-5
- name: Compile binary server file
run: bam server_release
MACRO_CONFIG_INT(ClWarningTeambalance, cl_warning_teambalance, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Warn about team balance")
if(!strncmp(Msg->m_pMessage, "/", 1))
{
LastChat();
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "Wrong command. Use /cmdlist");
}
else if
xdreturn
IN EVERY ELSE IFreturn
IN EVERY ELSE IF return;
in every else if
when it's only because the last if
is not else if
return
doesn't have a valueif
else if
there and reduce the return;
usage everywhereelse if
chain at least write it in a sane wayint ClientID
m_Team
NETOBJTYPE_CLIENTINFO
TEAM_SPECTATORS
in m_Team
when the netobj is sent, im sure that messes with xPanic logic and UICServerInfo::m_aGameType
is not equal to any vanilla mode or any ddrace modeCServerInfo::m_aGameType
or notCServerInfo::m_aGameType
is an exact match, we could include a flag not to show this message