From bbcd6ed5f9d337dcefd6c424417c1fcb9c4711e6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 17 Oct 2009 07:05:34 +0000 Subject: [PATCH] - fixed: The desaturation translation addition broke parsing of palette index based translations. SVN r1925 (trunk) --- docs/rh-log.txt | 3 +++ src/r_translate.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index a3f584964..232cff329 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,6 @@ +October 17, 2009 (Changes by Graf Zahl) +- fixed: The translation addition broke parsing of palette index based translations. + October 16, 2009 (Changes by Graf Zahl) - added 'defaultterrain' option to terrain parser for mods that want to have a different default terrain than a generic solid surface. diff --git a/src/r_translate.cpp b/src/r_translate.cpp index afd35cf29..bd1e7bfd4 100644 --- a/src/r_translate.cpp +++ b/src/r_translate.cpp @@ -463,7 +463,7 @@ void FRemapTable::AddToTranslation(const char * range) { int pal1,pal2; - sc.MustGetToken(TK_IntConst); + sc.TokenMustBe(TK_IntConst); pal1 = sc.Number; sc.MustGetToken(':'); sc.MustGetToken(TK_IntConst);