mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-26 13:06:45 +01:00
Use explicit constants when checking g_gametype
This commit is contained in:
9 files changed
+43
-43
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user