Fix typo soldier typo

This commit is contained in:
2024-01-23 16:25:35 +01:00
parent c9a2bd2672
commit 811f22f7bc
3 changed files with 26 additions and 26 deletions

View File

@@ -474,7 +474,7 @@ typedef enum EntityType {
ENTITY_MAGE,
ENTITY_ORC,
ENTITY_POP,
ENTITY_SOILDER,
ENTITY_SOLDIER,
ENTITY_STONE,
ENTITY_WARRIOR,
ENTITY_WOOD,
@@ -494,7 +494,7 @@ typedef enum AnimType {
static BzTileID getEntityTile(EntityType type) {
switch (type) {
case ENTITY_WORKER: return 27;
case ENTITY_SOILDER: return 539;
case ENTITY_SOLDIER: return 539;
case ENTITY_WARRIOR: return 1051;
case ENTITY_MAGE: return 1563;
case ENTITY_ORC: return 2075;
@@ -511,7 +511,7 @@ static BzTileID getEntityTile(EntityType type) {
static const char *getEntityStr(EntityType type) {
switch (type) {
case ENTITY_WORKER: return "worker";
case ENTITY_SOILDER: return "soilder";
case ENTITY_SOLDIER: return "soldier";
case ENTITY_WARRIOR: return "warrior";
case ENTITY_MAGE: return "mage";
case ENTITY_ORC: return "orc";
@@ -549,7 +549,7 @@ static bool entityHasAnimation(EntityType entity, AnimType type) {
default:
return false;
}
case ENTITY_SOILDER:
case ENTITY_SOLDIER:
switch (type) {
case ANIM_IDLE:
case ANIM_WALK:
@@ -614,7 +614,7 @@ static AnimationSequence entityGetAnimationSequence(EntityType entity, AnimType
case ANIM_DIE: return (AnimationSequence) {.startFrame = 32, .frameCount = 5};
default: break;
}
case ENTITY_SOILDER:
case ENTITY_SOLDIER:
switch (type) {
case ANIM_IDLE: return (AnimationSequence) {.startFrame = 539, .frameCount = 2};
case ANIM_WALK: return (AnimationSequence) {.startFrame = 541, .frameCount = 4};
@@ -670,7 +670,7 @@ static AnimationFrame entityGetAnimationFrame(EntityType entity, AnimType type,
case ANIM_DIE: return ((AnimationFrame []) {{32, 0.1400f}, {33, 0.1400f}, {34, 0.1400f}, {35, 0.1400f}, {36, 0.1400f}}) [frameIdx];
default: break;
}
case ENTITY_SOILDER:
case ENTITY_SOLDIER:
switch (type) {
case ANIM_IDLE: return ((AnimationFrame []) {{539, 0.2000f}, {540, 0.2000f}}) [frameIdx];
case ANIM_WALK: return ((AnimationFrame []) {{541, 0.1800f}, {542, 0.1800f}, {543, 0.1800f}, {542, 0.1800f}}) [frameIdx];