Changeset 136 for trunk/src/game/Player.cpp
- Timestamp:
- 11/19/08 13:39:20 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Player.cpp
r128 r136 993 993 994 994 Unit::Update( p_time ); 995 996 // update player only attacks997 if(uint32 ranged_att = getAttackTimer(RANGED_ATTACK))998 {999 setAttackTimer(RANGED_ATTACK, (p_time >= ranged_att ? 0 : ranged_att - p_time) );1000 }1001 1002 if(uint32 off_att = getAttackTimer(OFF_ATTACK))1003 {1004 setAttackTimer(OFF_ATTACK, (p_time >= off_att ? 0 : off_att - p_time) );1005 }1006 995 1007 996 time_t now = time (NULL);