what's wrong with this code?
Author | Topic: what's wrong with this code? |
---|---|
Shock Trooper
Member # 4180
|
written Monday, April 5 2004 19:33
Profile
At the risk of making a pest of myself, I'd like to know why this doesn't work. :) I decided to code around the problem with damage_near_loc passing through walls, and came up with this: That seems to me as if it should work, but any character that's adjacent ends up taking damage four times, instead of only once. So where did I go wrong? -spyderbytes EDIT: DOH! It's always the simple gotchas. :D Adding last_abil_time = get_current_tick(); before the last curly bracket makes it work as expected. Sorry 'bout dat! [ Monday, April 05, 2004 20:28: Message edited by: spyderbytes ] -------------------- -spyderbytes Posts: 200 | Registered: Wednesday, March 31 2004 08:00 |