- 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:
parent
2afac5c716
commit
ac32bd72bb
6 changed files with 25 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue