[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#397424: achilles: In EnergyClass::EatFood limit food to fcap is not working

Package: achilles
Version: 2-6
Severity: normal

In EnergyClass.cc is a programing error.
By a mistake f was used for food.

EatFood with error:

bool EnergyClass::EatFood(double f) {
  if(f>fcap) f=fcap;
  if(f<0) f=0;
  return true;

EatFood with a working limit:

bool EnergyClass::EatFood(double f) {
  if(food>fcap) food=fcap;
  if(food<0) food=0;
  return true;

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages achilles depends on:
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries
ii  libgcc1                      1:4.1.1-13  GCC support library
ii  libgl1-mesa-glx [libgl1]     6.5.1-0.2   A free implementation of the OpenG
ii  libglu1-mesa [libglu1]       6.5.1-0.2   The OpenGL utility library (GLU)
ii  libpng12-0                   1.2.8rel-7  PNG library - runtime
ii  libsdl1.2debian              1.2.11-7    Simple DirectMedia Layer
ii  libstdc++6                   4.1.1-13    The GNU Standard C++ Library v3
ii  libx11-6                     2:1.0.3-2   X11 client-side library
ii  libxi6                       1:1.0.1-3   X11 Input extension library
ii  libxmu6                      1:1.0.2-2   X11 miscellaneous utility library
ii  libxv1                       1:1.0.2-1   X11 Video extension library
ii  libxxf86dga1                 2:1.0.1-2   X11 Direct Graphics Access extensi
ii  libxxf86vm1                  1:1.0.1-2   X11 XFree86 video mode extension l
ii  zlib1g                       1:1.2.3-13  compression library - runtime

achilles recommends no packages.

-- no debconf information

Reply to: