From 2b86ebe4e556d9bdc612b33c492b74a2b43daa41 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Dec 2007 13:45:57 +0000 Subject: [PATCH] - Added Karate Chris's fix for TEAMINFO definitions with just one team. SVN r615 (trunk) --- docs/rh-log.txt | 3 +++ src/teaminfo.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 80d9d5ecd..06b2c6b71 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,6 @@ +December 21, 2007 (Changes by Graf Zahl) +- Added Karate Chris's fix for TEAMINFO definitions with just one team. + December 20, 2007 (Changes by Graf Zahl) - Added Blzut3's SBARINFO submission. - Added SnowKate709's A_LookEx submission. diff --git a/src/teaminfo.cpp b/src/teaminfo.cpp index ed878745d..b47dff259 100644 --- a/src/teaminfo.cpp +++ b/src/teaminfo.cpp @@ -96,8 +96,8 @@ void TEAMINFO_Init () SC_Close(); } - if (teams.Size () == 0) - I_FatalError ("No teams defined in TEAMINFO"); + if (teams.Size () < 2) + I_FatalError ("At least two teams must be defined in TEAMINFO"); } //==========================================================================