More int-to-boolean cleanup. Make the FDISTR event work.
[super-star-trek.git] / src / moving.c
index 01958a144e6cfaaa982496cc9922fbc275312773..e966bed76a47899bb6633828656301df8f619ee3 100644 (file)
@@ -523,7 +523,7 @@ void warp(bool timewarp)
            game.ididit = 0;
            skip(1);
            prout("Engineering to bridge--");
-           if (game.shldup==0 || 0.5*power > game.energy) {
+           if (!game.shldup || 0.5*power > game.energy) {
                iwarp = pow((game.energy/(game.dist+0.05)), 0.333333333);
                if (iwarp <= 0) {
                    prout("We can't do it, Captain. We haven't the energy.");