]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rada.c
Don't limit radar command's range to fit into world map
[empserver] / src / lib / commands / rada.c
index 23addec28bc00c5a9c0e04f474f034f5b5bb33f7..56b2fedd405f25b3298858ae0b214c37a945aad8 100644 (file)
@@ -74,10 +74,6 @@ radar(int type)
        if (!snxtsct(&ns, cp))
            return RET_SYN;
        tech = tfact(player->cnum, 8.0);
-       if (tech > WORLD_Y / 4.0)
-           tech = WORLD_Y / 4.0;
-       if (tech > WORLD_X / 8.0)
-           tech = WORLD_X / 8.0;
        while (nxtsct(&ns, &item.sect)) {
            if (item.sect.sct_type != SCT_RADAR)
                continue;
@@ -117,10 +113,6 @@ radar(int type)
            }
 
            pr("%s at ", obj_nameof(&item.gen));
-           if (tech > WORLD_Y / 2.0)
-               tech = WORLD_Y / 2.0;
-           if (tech > WORLD_X / 4.0)
-               tech = WORLD_X / 4.0;
            radmap(item.gen.x, item.gen.y, item.gen.effic, (int)tech, tf);
        }
        break;