diff options
Diffstat (limited to 'src/base/protect.c')
| -rw-r--r-- | src/base/protect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/protect.c b/src/base/protect.c index 9661e32..d73b7dc 100644 --- a/src/base/protect.c +++ b/src/base/protect.c @@ -35,17 +35,17 @@ void refreshLastMove(protect_t * p) p->count++; if (p->count == PROTECT_SPEED_AVARAGE) { - int index; + int my_index; - index = p->avarage / PROTECT_SPEED_AVARAGE; + my_index = p->avarage / PROTECT_SPEED_AVARAGE; p->avarage = 0; p->count = 0; #if 0 - if (index < PROTECT_SPEED_INTERVAL_TIMEOUT) { + if (my_index < PROTECT_SPEED_INTERVAL_TIMEOUT) { p->isDown = TRUE; } #endif - //printf("speed index = %d\n", index); + //printf("speed index = %d\n", my_index); } } |