Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1917 in orxonox.OLD for orxonox/trunk/core/environment.cc


Ignore:
Timestamp:
Jun 7, 2004, 9:32:51 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: ground moves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/environment.cc

    r1896 r1917  
    2828{
    2929
     30
     31  for (int x = 0; x < 10; x++)
     32    {
     33      for (int y = 0; y < 10; y++)
     34        {
     35          mountainTest[x][y] = 0;
     36                                                 
     37        }
     38    }
     39
    3040  for (int x = 1; x < 9; x++)
    3141    {
     
    5464 
    5565  glBegin(GL_LINES);
    56   for (int x = 0; x < 10; x += 1)
     66  for (int x = 0; x < 9; x += 1)
    5767    {
    58       for (int y = 0; y < 10; y += 1)
     68      for (int y = 0; y < 9; y += 1)
    5969        {
    6070          glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]);
     
    6676 
    6777  glBegin(GL_LINES);
    68   for (int y = 0; y < 10; y += 1)
     78  for (int y = 0; y < 9; y += 1)
    6979    {
    70       for (int x = 0; x < 10; x += 1)
     80      for (int x = 0; x < 9; x += 1)
    7181        {
    7282          glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]);
Note: See TracChangeset for help on using the changeset viewer.