Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 18, 2005, 6:28:54 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a bug in the allocation of Element2D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5397 r5398  
    113113  this->setActiveness(true);
    114114  this->setAlignment(E2D_ALIGN_NONE);
    115   this->layer = E2D_TOP;
     115  this->layer = E2D_DEFAULT_LAYER;
    116116  this->bindNode = NULL;
    117117
     
    214214{
    215215  if (!strcmp(layer, "top"))
    216     this->setLayer(E2D_TOP);
     216    this->setLayer(E2D_LAYER_TOP);
    217217  else if (!strcmp(layer, "medium"))
    218     this->setLayer(E2D_MEDIUM);
     218    this->setLayer(E2D_LAYER_MEDIUM);
    219219  else if (!strcmp(layer, "bottom"))
    220     this->setLayer(E2D_BOTTOM);
     220    this->setLayer(E2D_LAYER_BOTTOM);
    221221  else if (!strcmp(layer, "below-all"))
    222     this->setLayer(E2D_BELOW_ALL);
     222    this->setLayer(E2D_LAYER_BELOW_ALL);
    223223}
    224224
Note: See TracChangeset for help on using the changeset viewer.