The Dink Network

Reply to missle_source - v1.08 change?

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 5th 2005, 09:46 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Dink is buggier than I remember

As a reminder, &missle_source is a special global variable that holds the value of the last missile_brain to hit something.

However, it is only set one place in the code (when a missle checks to see if it hit something), and is never cleared.

I created a test to confirm my fears...

While a bomb is blowing up, I punch a rock with a standard missle_source check to disappear. The rock disappears, even though it isn't anywhere near the bomb, because it picks up the current missle source.

What would be the best way to fix this?

One idea is to make missle_source reflect the attacking sprite for every kind of attack, not just missiles.

Can anyone think of any possible side-effects that might result from that?