commit with many many changes.

- deletion of all unused / dead code
- clean up, commenting, assertions


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@323 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-08-13 20:14:10 +00:00
parent aa8864d3f1
commit e526797597
21 changed files with 445 additions and 1842 deletions

View File

@ -58,18 +58,20 @@ void InitCond::evaluate() {
assert(this);
assert(param);
/* Parameter is of boolean type, either a 1 or 0 value integer */
/* Set matrix flag to zero. This ensures
its constant value will be used rather than a matrix value
*/
param->matrix_flag = 0;
if (param->type == P_TYPE_BOOL) {
// printf( "init_cond: %s = %d (TYPE BOOL)\n", param->name.c_str(), init_val.bool_val);
std::cerr << "[InitCond] param is a boolean of with name "
<< param->name << std::endl;
assert(param->engine_val);
*((int*)param->engine_val) = init_val.bool_val;