- 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.


SVN r2077 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-02 12:03:36 +00:00
parent 87f3c9c5b7
commit efb420228c
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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(';');