Annotation of researchv10no/games/trek/setwarp.c, revision 1.1

1.1     ! root        1: # include      "trek.h"
        !             2: 
        !             3: /**
        !             4:  **    set the warp factor
        !             5:  **/
        !             6: 
        !             7: setwarp()
        !             8: {
        !             9:        float   warpfac;
        !            10: 
        !            11:        if(getfltpar("Warp factor", &warpfac)==0) return;
        !            12:        if (warpfac < 0.0)
        !            13:                return;
        !            14:        if (warpfac < 1.0) {
        !            15:                printf("Minimum warp speed is 1.0\n");
        !            16:                return;
        !            17:        }
        !            18:        if (warpfac > 10.0) {
        !            19:                printf("Maximum speed is warp 10.0\n");
        !            20:                return;
        !            21:        }
        !            22:        if (warpfac > 6.0)
        !            23:                printf("Damage to warp engines may occur above warp 6.0\n");
        !            24:        Status.warp = warpfac;
        !            25:        Status.warp2 = Status.warp * warpfac;
        !            26:        Status.warp3 = Status.warp2 * warpfac;
        !            27: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.