Small, probably unimportant bug in legacy code FYI for those porting up.

Started by Trisk, Tue 15/11/2005 18:39:00

Previous topic - Next topic

Trisk

I'm porting Prodigal over to AGS 2.71 RC3. In my testing of it, I noticed a small, easily fixed bug involving the legacy code. I thought I'd note it here in case anyone else has legacy code in their games.

I started Prodigal on AGS 2.62, so the first half or so of the game has all the old style AGS coding in it. While this wasn't a problem with AGS 2.7, 2.71 RC3 has a bug with legacy code in relation to:

SetCharacterProperty (EGO, CHAR_IGNORESCALING, 1);

This USED to show Ego at 100% size, ignoring walkable area scaling. On AGS 2.71 RC3, however, it shows him as 50% size, for some reason...suddenly he was very, very itty-bitty.

Easy enough to fix, though...just replace with the new code:

cEgo.ManualScaling = true;
cEgo.Scaling = 100;

Just a quick note to any others who are porting up to 2.71 RC3.

Trisk

Pumaman

Good point well spotted, I fixed the backwards compatibility issue for Character.IgnoreScaling, but forgot about SetCharacterProperty.

I'll get it fixed.

SMF spam blocked by CleanTalk