Changeset 5078 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Aug 19, 2005, 5:02:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/render_2d.cc
r5068 r5078 88 88 void Render2D::moveToLayer(Element2D* element2D, E2D_LAYER to) 89 89 { 90 this->element2DList[(int)log2(element2D->getLayer())]->remove(element2D); 91 this->element2DList[(int)log2(to)]->add(element2D); 90 if (element2D->getLayer() != to) 91 { 92 this->element2DList[(int)log2(element2D->getLayer())]->remove(element2D); 93 this->element2DList[(int)log2(to)]->add(element2D); 94 } 92 95 } 93 96
Note: See TracChangeset
for help on using the changeset viewer.