Better server performance

This (should) improve performance quite a lot.

Testing results:
**old code**
zombies: 2500
serverfps: 8

**new code**
zombies: 2500
serverfps: 40+

note that all 2500 zombies ran on a single client.