google-code-export / bzzwolfsp

Automatically exported from code.google.com/p/bzzwolfsp
GNU General Public License v3.0
0 stars 0 forks source link

AI runs slow on a dedicated server #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start a dedicated server
2. connect to it
3. watch the forward moonwalking castai's

see src/game/ai_cast_think.c around line 410, bi.speed is sometimes below zero 
this is not the case on a listen server, really annoying bug !

Original issue reported on code.google.com by frederik...@gmail.com on 22 Dec 2011 at 6:56

GoogleCodeExporter commented 9 years ago
fixed. A dedicated doesn't have access to the movespeeds (which are sent from 
the local client through a syscall to the server), I solved it by extracting 
all the movespeeds for all the models and saving them in to a file.
Loading this file on the server solves everything.

Original comment by frederik...@gmail.com on 7 Jan 2012 at 8:40