The Dink Network

Reply to Re: Burnin trees

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:
 
 
June 10th 2003, 10:28 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Hmm... the original hellfire script has a bug in it. Replace this code:

//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}


With this:

//they hit a tree, lets burn the thing
int &hold = sp_editor_num(&missile_target);
&junk = is_script_attached(&missile_target);
if (&junk > 0)
{
//Script is attached to this tree! Let's run it's die script
run_script_by_number(&junk, "DIE");
return;
}
sp_hard(&missile_target, 1);
draw_hard_sprite(&missile_target);