Przeglądaj źródła

Make initial hitBox size match initial width/height

- Otherwise it's possible to have a clickable entity
  with zero size by default which seems like something
  you don't want as a default behavior.
Nur Monson 12 lat temu
rodzic
commit
9dc34dd832
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Core/Contents/Source/PolyScreenEntity.cpp

+ 1 - 1
Core/Contents/Source/PolyScreenEntity.cpp

@@ -37,7 +37,7 @@ ScreenEntity::ScreenEntity() : Entity() {
 	color = Color(1.0f,1.0f,1.0f,1.0f);
 	width = 0;
 	height = 0;
-	setHitbox(1, 1);
+	setHitbox(0, 0);
 	backfaceCulled = false;
 	positionMode = POSITION_TOPLEFT;
 	mouseOver = false;