The Dink Network

Reply to Re: Global variables

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 25th 2004, 12:44 PM
goblinm.gif
Gyah! An error in the DinkC reference? Could it be?

int &hold = sp_editor_num(&current_sprite);

if (&hold != 0)
{
this was placed by the editor, lets make the barrel stay flat
editor_type(&current_sprite, 3);
editor_seq(&current_sprite, 173);
editor_frame(&current_sprite, 4);
type means show this seq/frame combo as background in the future
}

Notice Seth has editor_seq(&current_sprite, #), i.e., the sprite number, and Redink (correctly) has editor_seq(&hold, #), i.e., the editor number.

Not that anyone cares...