X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=setup.c;h=17c14cf030e59b231e24d6f5e3e8911178650dd7;hb=797f0f77ccdfd001fff39396ceae760478c2b920;hp=2b360686b7ee282a0c99a0d5880601b91b104377;hpb=bdcf85461c171a9263fb0ba0e0ec07661bd082f5;p=super-star-trek.git diff --git a/setup.c b/setup.c index 2b36068..17c14cf 100644 --- a/setup.c +++ b/setup.c @@ -559,7 +559,7 @@ void newqad(int shutup) game.kpower[i] = Rand()*150.0 +300.0 +25.0*skill; } // If we need a commander, promote a Klingon - for (i = 1; i <= game.state.remcom ; i++) + for_commanders(i) if (game.state.cx[i]==quadx && game.state.cy[i]==quady) break; if (i <= game.state.remcom) {