Fixed bug that prevents compiler from finding user types in scope
This commit is contained in:
@@ -4448,7 +4448,7 @@ int main(int argc, char * argv[])
|
||||
if(debug_opt.compare("a")==0)
|
||||
{
|
||||
//rc_intern_dirChange("/home/n00b/Music/rcbasic_v400_linux64/examples/tile_demo");
|
||||
rc_intern_dirChange("/home/n00b/projects/rcbasic_alpha3/test_project");
|
||||
rc_intern_dirChange("/home/n00b/Music/Simple 3D Platformer/");
|
||||
rc_filename = "main.cbc";
|
||||
}
|
||||
else
|
||||
|
||||
@@ -135,7 +135,7 @@ void rc_setActorMD2AnimationByName(int actor, std::string animation_name, int nu
|
||||
rc_actor[actor].isPlaying = true;
|
||||
//node->setCurrentFrame(start_frame);
|
||||
//node->setFrameLoop((irr::s32)start_frame, (irr::s32)end_frame ); //setMD2Animation() does this for me
|
||||
node->setAnimationSpeed(node->getMesh()->getAnimationSpeed());
|
||||
//node->setAnimationSpeed(node->getMesh()->getAnimationSpeed());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -766,16 +766,17 @@ void rc_setActorPosition(int actor, double x, double y, double z)
|
||||
{
|
||||
//std::cout << "Set POS" << std::endl;
|
||||
irr::core::matrix4 actor_transform = rc_actor[actor].physics.rigid_body->getWorldTransform();
|
||||
rc_physics3D.world->removeCollisionObject(rc_actor[actor].physics.rigid_body, false);
|
||||
//rc_physics3D.world->removeCollisionObject(rc_actor[actor].physics.rigid_body, false);
|
||||
actor_transform.setTranslation( irr::core::vector3df(x, y, z) );
|
||||
rc_actor[actor].physics.rigid_body->clearForces();
|
||||
//rc_actor[actor].physics.rigid_body->
|
||||
rc_actor[actor].physics.rigid_body->setWorldTransform(actor_transform);
|
||||
|
||||
rc_actor[actor].physics.rigid_body->setMassProps(rc_actor[actor].physics.mass, irr::core::vector3df(0,0,0));
|
||||
rc_physics3D.world->addRigidBody(rc_actor[actor].physics.rigid_body);
|
||||
//rc_actor[actor].physics.rigid_body->setMassProps(rc_actor[actor].physics.mass, irr::core::vector3df(0,0,0));
|
||||
//rc_physics3D.world->addRigidBody(rc_actor[actor].physics.rigid_body);
|
||||
|
||||
rc_actor[actor].mesh_node->setPosition(actor_transform.getTranslation());
|
||||
rc_actor[actor].mesh_node->updateAbsolutePosition();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define RC_OS_DEFINES_H_INCLUDED
|
||||
|
||||
//USED FOR TESTING ONLY
|
||||
//#define RC_TESTING
|
||||
#define RC_TESTING
|
||||
|
||||
//I am checking Android first since I think it also defines __linux__
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# depslib dependency file v1.0
|
||||
1733959687 source:/home/n00b/Projects/RCBASIC4/rcbasic_runtime/main.cpp
|
||||
1734119283 source:/home/n00b/Projects/RCBASIC4/rcbasic_runtime/main.cpp
|
||||
"rc_os_defines.h"
|
||||
<emscripten.h>
|
||||
<sys/param.h>
|
||||
@@ -33,7 +33,7 @@
|
||||
<irrtheora.h>
|
||||
"rc_func130_cases.h"
|
||||
|
||||
1733960003 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
|
||||
1734119283 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_os_defines.h
|
||||
<TargetConditionals.h>
|
||||
|
||||
1733959765 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_defines.h
|
||||
@@ -2518,11 +2518,11 @@
|
||||
1733590876 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_physics3D_base.h
|
||||
"rc_gfx_core.h"
|
||||
|
||||
1731727404 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_base_actor.h
|
||||
1734125778 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_base_actor.h
|
||||
|
||||
1731710840 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_actor_material.h
|
||||
|
||||
1731727068 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_actor_animation.h
|
||||
1734119354 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_actor_animation.h
|
||||
|
||||
1730291453 /home/n00b/Projects/RCBASIC4/rcbasic_runtime/rc_actor_physics.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user