- Added A_ClearReFire code pointer for weapons. Preferably A_WeaponReady should

reset this counter but that can't be done due to unwanted side effects with
  existing weapons.
- Changed the 'scale' variable in CVAR(turbo) to double because the calculations
  depended on the current floating point precision setting and only worked properly
  when set to 'precise' in VC++.


SVN r1057 (trunk)
This commit is contained in:
Christoph Oelckers 2008-06-30 23:30:06 +00:00
commit ac32bd72bb
6 changed files with 25 additions and 4 deletions

View file

@ -1011,9 +1011,10 @@ void FMultiPatchTexture::ParsePatch(FScanner &sc, TexPart & part)
else if (sc.Compare("rotate"))
{
sc.MustGetNumber();
if (sc.Number != 0 && sc.Number !=90 && sc.Number != 180 && sc.Number != -90)
{
sc.ScriptError("Rotation must be 0, 90, 180 or -90 degrees");
sc.Number = (((sc.Number + 90)%360)-90);
if (sc.Number != 0 && sc.Number !=90 && sc.Number != 180 && sc.Number != -90)
{
sc.ScriptError("Rotation must be a multiple of 90 degrees.");
}
part.Rotate = (sc.Number / 90) & 3;
}