From 80f5a58e3419ccf4ec2e988f489cfd66acc2f17c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 May 2010 20:34:28 +0000 Subject: [PATCH] - fix automap cheat to avoid division by 0. SVN r2308 (trunk) --- src/am_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index 62af8ed67..9987876a9 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -185,7 +185,7 @@ CUSTOM_CVAR (Int, am_showalllines, -1, 0) // This is a cheat so don't save it. { int flagged = 0; int total = 0; - if (self > 0) + if (self > 0 && numlines > 0) { for(int i=0;i