version 1.4 | | version 1.5 |
---|
| | |
fix last_send_time = 0; | | fix last_send_time = 0; |
fix last_timeout_check = 0; | | fix last_timeout_check = 0; |
| | |
| | //added on 11/29/99 by Victor Rachels to resend ghosting |
| | fix last_observer_send_time = 0; |
| | //end this section addition - VR |
| | |
void network_do_frame(int force, int listen) | | void network_do_frame(int force, int listen) |
{ | | { |
int i; | | int i; |
| | |
| | |
last_send_time += FrameTime; | | last_send_time += FrameTime; |
last_timeout_check += FrameTime; | | last_timeout_check += FrameTime; |
| | |
| | //added on 11/29/99 by Victor Rachels to resend ghosting |
| | if(I_am_observer) |
| | { |
| | last_observer_send_time += FrameTime; |
| | if(last_observer_send_time > (OBSERVER_RESEND_DELAY*F1_0)) |
| | { |
| | multi_send_observerghost(100); |
| | last_observer_send_time = 0; |
| | } |
| | } |
| | //end this section addition - VR |
| | |
| | |
// Send out packet 10 times per second maximum... unless they fire, then send more often... | | // Send out packet 10 times per second maximum... unless they fire, then send more often... |
//added/edited on 11/28/99 by Victor Rachels to use less bandwidth for observer | | //added/edited on 11/28/99 by Victor Rachels to use less bandwidth for observer |