mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed: X and Y scale, defined in MODELDEF, were applied incorrectly.
This commit is contained in:
parent
6aedda77d3
commit
6eef13c252
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
|
|||
case "scale":
|
||||
parser.SkipWhitespace(true);
|
||||
token = parser.StripTokenQuotes(parser.ReadToken());
|
||||
if(!parser.ReadSignedFloat(token, ref scale.X))
|
||||
if(!parser.ReadSignedFloat(token, ref scale.Y))
|
||||
{
|
||||
// Not numeric!
|
||||
General.ErrorLogger.Add(ErrorType.Error, "Error in " + parser.Source + " at line " + parser.GetCurrentLineNumber() + ": expected Scale X value, but got '" + token + "'");
|
||||
|
@ -167,7 +167,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
|
|||
|
||||
parser.SkipWhitespace(true);
|
||||
token = parser.StripTokenQuotes(parser.ReadToken());
|
||||
if(!parser.ReadSignedFloat(token, ref scale.Y))
|
||||
if(!parser.ReadSignedFloat(token, ref scale.X))
|
||||
{
|
||||
// Not numeric!
|
||||
General.ErrorLogger.Add(ErrorType.Error, "Error in " + parser.Source + " at line " + parser.GetCurrentLineNumber() + ": expected Scale Y value, but got '" + token + "'");
|
||||
|
|
Loading…
Reference in a new issue