Browse Source

formatting

Dave Schuyler 20 years ago
parent
commit
d653234504
2 changed files with 3 additions and 3 deletions
  1. 1 1
      panda/src/physics/physicsManager.I
  2. 2 2
      panda/src/physics/physicsManager.cxx

+ 1 - 1
panda/src/physics/physicsManager.I

@@ -66,7 +66,7 @@ attach_physicalnode(PhysicalNode *p) {
 INLINE void PhysicsManager::
 INLINE void PhysicsManager::
 attach_physical_node(PhysicalNode *p) {
 attach_physical_node(PhysicalNode *p) {
   nassertv(p);
   nassertv(p);
-  for (int i = 0; i < p->get_num_physicals(); i++) {
+  for (int i = 0; i < p->get_num_physicals(); ++i) {
     attach_physical(p->get_physical(i));
     attach_physical(p->get_physical(i));
   }
   }
 }
 }

+ 2 - 2
panda/src/physics/physicsManager.cxx

@@ -55,7 +55,7 @@ PhysicsManager::
 //                For synchronizing across distributed computers
 //                For synchronizing across distributed computers
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void PhysicsManager::
 void PhysicsManager::
-init_random_seed(void) {
+init_random_seed() {
   // Use the random seed specified by the physics_manager_random_seed
   // Use the random seed specified by the physics_manager_random_seed
   // Config Variable
   // Config Variable
   srand(_random_seed);
   srand(_random_seed);
@@ -125,7 +125,7 @@ remove_physical(Physical *p) {
 void PhysicsManager::
 void PhysicsManager::
 remove_physical_node(PhysicalNode *p) {
 remove_physical_node(PhysicalNode *p) {
   nassertv(p);
   nassertv(p);
-  for (int i = 0; i < p->get_num_physicals(); i++) {
+  for (int i = 0; i < p->get_num_physicals(); ++i) {
     remove_physical(p->get_physical(i));
     remove_physical(p->get_physical(i));
   }
   }
 }
 }