X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Ffleet.cpp;fp=bs%2Ffleet.cpp;h=7070dae6d2a719c3162c5d2113237fa4a84b4383;hb=bd23b35be6c105946c9ecf87785f409f69a24714;hp=545ffa2e43d094fe09a3490d85d13dacebc29e49;hpb=581ae6e3bafef57ab8b276cd60a6c74fb3023213;p=hbs.git diff --git a/bs/fleet.cpp b/bs/fleet.cpp index 545ffa2..7070dae 100644 --- a/bs/fleet.cpp +++ b/bs/fleet.cpp @@ -465,7 +465,7 @@ void Fleet::takeEMP(std::string unittype, int number) for (map::iterator j = targets.begin(); j != targets.end(); ++j) { - int maxguns = (*j->second)/total * guns; + float maxguns = float((*j->second))/total * guns; cerr << "Now shooting at target: " << j->first << endl; double k = maxguns;