Bug report (2)

Started by am, Mon 21/04/2003 20:55:23

Previous topic - Next topic

am

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"

Pumaman

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?

am

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

EvilTypeGuy

Please forgive me for this little diatribe.

But.

It's lose not loose.

They mean two totally different things  ::)

Pumaman

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.

SMF spam blocked by CleanTalk