diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
| commit | e5e0724740215565404dba837f8c3072f9fe7413 (patch) | |
| tree | 39d80e50e12a9fffe47834cd375212017b22025b /src/base/protect.c | |
| parent | df1f2b7cccb241db5500453aa65d11896f54ce6d (diff) | |
fix warnings...
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); } } |