From: Michael Andreen Date: Fri, 12 Apr 2002 18:49:53 +0000 (+0000) Subject: last minute bug.. ;P X-Git-Tag: HBS_0_1_1 X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=commitdiff_plain;h=bd23b35be6c105946c9ecf87785f409f69a24714 last minute bug.. ;P --- 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; diff --git a/bs/planet.cpp b/bs/planet.cpp index 0e4de71..c374a99 100644 --- a/bs/planet.cpp +++ b/bs/planet.cpp @@ -172,7 +172,7 @@ void Planet::calcOneTick(Planet* friendly, Fleet* hostile, std::mapsecond; - cerr << "Initiative: " << s_Units[unittype].initiative() << " with unit: " << unittype << endl; + //cerr << "Initiative: " << s_Units[unittype].initiative() << " with unit: " << unittype << endl; if (s_Units[unittype].type() == "EMP") { diff --git a/hbs.kdevprj b/hbs.kdevprj index 235e017..a89c6b8 100644 --- a/hbs.kdevprj +++ b/hbs.kdevprj @@ -18,21 +18,24 @@ type=DATA [Config for BinMakefileAm] addcxxflags= -bin_program=bs -cxxflags=-O0 -g3 -Wall +bin_program=hbs +cflags= +cppflags= +cxxflags=\s-O0 -g3 -Wall ldadd= -ldflags= +ldflags=\s libtool_dir= path_to_bin_program=bs [General] AMChanged=false author=Michael Andreen +configure_args=\s--build=i386-linux --host=i386-linux --target=i386-linux\s dir_where_make_will_be_called=./ email=whale@linux.nu kdevprj_version=1.3 lfv_open_groups= -make_options=-j1 -W/home/whale/c++/gfxtar/blaha +make_options=\s-j1 makefiles=Makefile.am,bs/Makefile.am,bs/docs/Makefile.am,bs/docs/en/Makefile.am,po/Makefile.am modifyMakefiles=true project_name=Bc