bound remote roll by local maxroll
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4360 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -88,6 +88,8 @@ void updatelagtime(playerent *d)
|
||||
|
||||
extern void trydisconnect();
|
||||
|
||||
VARP(maxrollremote, 0, 1, 1); // bound remote "roll" values by our maxroll?!
|
||||
|
||||
void parsepositions(ucharbuf &p)
|
||||
{
|
||||
int type;
|
||||
@@ -156,6 +158,8 @@ void parsepositions(ucharbuf &p)
|
||||
if(d->state==CS_LAGGED || d->state==CS_SPAWNING) d->state = CS_ALIVE;
|
||||
// when playing a demo spectate first player we know about
|
||||
if(player1->isspectating() && player1->spectatemode==SM_NONE) togglespect();
|
||||
extern void clamproll(physent *pl);
|
||||
if(maxrollremote) clamproll((physent *) d);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user