diff --git a/docs/rh-log.txt b/docs/rh-log.txt index b727cb295..919ecdfc5 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ January 2, 2010 (Changes by Graf Zahl) +- fixed: SBARINFO's DrawGem command accepted a size value of 0 and divided + by it. Reinstated the old '+1' this command had in the old code. - fixed: The floor waggle code used FloatBobOffsets as sine table but this only has 64 entries and is not precise enough. It now uses finesine instead. - fixed: When compositing a multipatch texture any patch that is a multpatch diff --git a/src/g_shared/sbarinfo_commands.cpp b/src/g_shared/sbarinfo_commands.cpp index bd1bd1478..df6bd1b4a 100644 --- a/src/g_shared/sbarinfo_commands.cpp +++ b/src/g_shared/sbarinfo_commands.cpp @@ -2281,7 +2281,7 @@ class CommandDrawGem : public SBarInfoCommand sc.MustGetToken(TK_IntConst); if(sc.Number < 0) sc.ScriptError("Chain size must be a positive number."); - chainSize = sc.Number; + chainSize = sc.Number+1; sc.MustGetToken(','); GetCoordinates(sc, fullScreenOffsets, x, y); sc.MustGetToken(';');