X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=moving.c;h=f9b352bf9f0f723aaeea6c3aef121d09e41fcddb;hb=5db6160de8bad4de189d3b54dd54011260c7a34f;hp=0c91f71cd33886e3f907c6adfd1db0ae8a329091;hpb=8b0a1880ee115e281afe83e1cd0c90e3306dfed8;p=super-star-trek.git diff --git a/moving.c b/moving.c index 0c91f71..f9b352b 100644 --- a/moving.c +++ b/moving.c @@ -147,10 +147,10 @@ void imove(void) * possibility that you'll get timewarped instead. */ n=0; - for (l=1;l<=NDEVICES+1;l++) - if (game.damage[l]>0) n++; - probf=pow(1.4,(energy+shield)/5000.0-1.0)* - pow(1.3,1.0/(n+1)-1.0); + for (l=0;l0) + n++; + probf=pow(1.4,(energy+shield)/5000.0-1.0)*pow(1.3,1.0/(n+1)-1.0); if (Rand()>probf) timwrp(); else