Procházet zdrojové kódy

Add grass spawn on right click

DricomDragon před 4 roky
rodič
revize
63b39f9247
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      main.cpp

+ 4 - 0
main.cpp

@@ -130,6 +130,10 @@ int main()
 						putBloc(DESERT, world, cursorPos.y, cursorPos.x);
 						drawWorld(world, tileSet, map);
 					}
+					if (event.button.button == 3) {
+						putBloc(GRASS, world, cursorPos.y, cursorPos.x);
+						drawWorld(world, tileSet, map);
+					}
 					break;
 			} // end switch event type
 		} // end of message processing