Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: am on Mon 21/04/2003 20:55:23

Title: Bug report (2)
Post by: am on Mon 21/04/2003 20:55:23
Fount a couple of bugs today (using AGS 2.54):
1. when starting Drag in sprite manager AGS crushes (wanted to transfer sprite to a diffrent sprite folder...)
2. When using a global function inside another global function, before defining the function itself, the defenition is considered a second declaration when doing "save game"
Title: Re:Bug report (2)
Post by: Pumaman on Mon 21/04/2003 21:21:12
1. yep this is a known bug, I should really add it to the knowledge base

2. I don't understand what you mean, can you provide an example?
Title: Re:Bug report (2)
Post by: am on Mon 21/04/2003 21:37:16
Header:
import function loose_energy ();
import function kill_player (int);

Global:
function loose_energy ()
{
 .......
 kill_player(1);
 .......
}
function kill_player (int why)
{
 ......
}

---> Error: Already refernced name as import (for fun. kill_player)

<--------------- but
function kill_player (int why)
{
 ......
}
function loose_energy ()
{
 .......
 kill_player(1);
 .......
}
---->works fine
Title: Re:Bug report (2)
Post by: EvilTypeGuy on Mon 21/04/2003 21:51:42
Please forgive me for this little diatribe.

But.

It's lose not loose.

They mean two totally different things  ::)
Title: Re:Bug report (2)
Post by: Pumaman on Mon 21/04/2003 21:52:46
Forward references are not currently supported - this is not so much a bug as a 'feature'. The solution is as you discovered it.

Thanks for spotting it though.