Changeset 7428 in orxonox.OLD for trunk/src/lib/lang
- Timestamp:
- Apr 29, 2006, 12:13:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/class_list.cc
r7403 r7428 22 22 #include "debug.h" 23 23 #include <string.h> 24 #include < math.h>24 #include <cmath> 25 25 #include <algorithm> 26 #include "shell_command.h"27 28 26 using namespace std; 29 30 #ifndef NO_SHELL_COMMAND31 SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS)32 ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")33 ->defaultValues(MT_NULL, 1);34 #endif35 27 36 28 /** … … 353 345 { 354 346 lenCount = 1; 355 while ( pow(10,lenCount) <= (*cl).objectList.size())347 while (std::pow((float)10, (int)lenCount) <= (*cl).objectList.size()) 356 348 ++lenCount; 357 349 for (int i=0; i < 30-(*cl).className.size() - lenCount; i++)
Note: See TracChangeset
for help on using the changeset viewer.