mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Use explicit constants when checking g_gametype
This commit is contained in:
parent
04da76167c
commit
e2f4d8cd6b
9 changed files with 43 additions and 43 deletions
|
@ -5311,13 +5311,13 @@ void ScriptThread::TeamSetScore(Event *ev)
|
|||
if (bAdd) {
|
||||
team->m_iKills += score;
|
||||
|
||||
if (g_gametype->integer < 3) {
|
||||
if (g_gametype->integer < GT_TEAM_ROUNDS) {
|
||||
team->m_teamwins += score;
|
||||
}
|
||||
} else {
|
||||
team->m_iKills = score;
|
||||
|
||||
if (g_gametype->integer < 3) {
|
||||
if (g_gametype->integer < GT_TEAM_ROUNDS) {
|
||||
team->m_teamwins = score;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue