mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-12 10:25:31 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user