]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.cpp
started to work on the battle report.. almost there =)
[hbs.git] / bs / fleet.cpp
index bab852f0bf704b941a00b464771ac7d4fd37960d..cd558a6ae5f2ceff39e69dfa7ef25a0813f908d0 100644 (file)
@@ -449,6 +449,7 @@ void Fleet::takeShoot(std::string unittype, int number, std::map<std::string, in
                                                hitunits[j->first]++;
 
                                                //There is a chance that we're hitting a blocked ship.
+                                               /*Not anymore..
                                                if (m_BlockedFleet[j->first].size() >= 1)
                                                {
                                                        int test = rand() % m_BlockedFleet[j->first][0];
@@ -461,6 +462,7 @@ void Fleet::takeShoot(std::string unittype, int number, std::map<std::string, in
                                                                        m_BlockedFleet[j->first][1]--;
                                                        }
                                                }
+                                               */
                                        }
 
                                }
@@ -477,7 +479,7 @@ void Fleet::takeShoot(std::string unittype, int number, std::map<std::string, in
 
 //////////////////////////////////////////////////////////////////////////
 //
-void Fleet::takeEMP(std::string unittype, int number)
+void Fleet::takeEMP(std::string unittype, int number, std::map<std::string, int>& hitunits)
 {
        int guns = s_Units[unittype].guns() * number;
        if (guns == 0)