(no commit message)
[atyndall/cits2231.git] / helper.c
index ec880e8..0f711c2 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -210,8 +210,8 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz
  * Draw a floor by looping over the floorSize and squareSize variables
  */
 void drawFloor() {
  * Draw a floor by looping over the floorSize and squareSize variables
  */
 void drawFloor() {
-  getTexture(2);
-  glBindTexture(GL_TEXTURE_2D, 2);
+  getTexture(currentGroundTexture);
+  glBindTexture(GL_TEXTURE_2D, currentGroundTexture);
        glBegin(GL_QUADS);
     for ( int x = -floorSize; x < floorSize; x++ ) {
       for ( int z = -floorSize; z < floorSize; z++ ) {
        glBegin(GL_QUADS);
     for ( int x = -floorSize; x < floorSize; x++ ) {
       for ( int z = -floorSize; z < floorSize; z++ ) {

UCC git Repository :: git.ucc.asn.au