@@ -143,8 +143,8 @@ const s_defense default_defense =
143143 .block_damage_adjust = 0,
144144 .block_damage_max = MAX_INT,
145145 .block_damage_min = MIN_INT,
146- .blockpower = 0.f ,
147- .blockthreshold = 0.f ,
146+ .blockpower = 0,
147+ .blockthreshold = 0,
148148 .blockratio = DEFENSE_BLOCKRATIO_COMPATABILITY_DEFAULT,
149149 .blocktype = BLOCK_TYPE_GLOBAL,
150150 .death_config_flags = DEATH_CONFIG_MACRO_DEFAULT,
@@ -153,7 +153,7 @@ const s_defense default_defense =
153153 .damage_min = MIN_INT,
154154 .factor = 1.f,
155155 .knockdown = 1.f,
156- .pain = 0.f
156+ .pain = 0
157157};
158158
159159const s_offense default_offense =
@@ -1029,7 +1029,7 @@ int buffer_append(char **buffer, const char *str, size_t n, size_t *bufferlen, s
10291029 *buffer = realloc(*buffer, *bufferlen = appendlen + *len + 1024);
10301030 if(*buffer == NULL)
10311031 {
1032- borShutdown(1, "Unalbe to resize buffer.\n");
1032+ borShutdown(1, "Unable to resize buffer.\n");
10331033 }
10341034 }
10351035 strncpy(*buffer + *len, str, appendlen);
@@ -1051,7 +1051,7 @@ int handle_txt_include(char *command, ArgList *arglist, char **fn, char *namebuf
10511051 *buf = realloc(*buf, *len + size + strlen(incfile) + strlen(filename) + 100); //leave enough memory for jump command
10521052 if(*buf == NULL)
10531053 {
1054- borShutdown(1, "Unalbe to resize buffer. (handle_txt_include)\n");
1054+ borShutdown(1, "Unable to resize buffer. (handle_txt_include)\n");
10551055 free(buf2);
10561056 return 0;
10571057 }
@@ -4301,7 +4301,7 @@ void cachesound(int index, int load)
43014301// Rewrite by Caskey, Damon V.
43024302// 2018-03-19
43034303//
4304- // Add or remove a sprite to the the sprite list
4304+ // Add or remove a sprite to the sprite list
43054305// by index.
43064306//
43074307// index: Target index in the sprite list.
@@ -4842,12 +4842,12 @@ int nextcolourmapn(s_model *model, int map_index, int player_index)
48424842
48434843 // This logic attempts to populate used_colors_map array with
48444844 // every color in use by other players who picking same
4845- // character. If there are aren't enough unused map indexes to
4845+ // character. If there aren't enough unused map indexes to
48464846 // go around (i.e. three players select a character that only
48474847 // has two maps), then we return initial map selection.
48484848
48494849 for(i = 0; i < MAX_PLAYERS; i++)
4850- {
4850+ {
48514851 // Compare every player index to player_index argument. If
48524852 // it's a different index but that index's model matches
48534853 // player_index's model, then it's another player choosing
@@ -4961,7 +4961,7 @@ int prevcolourmapn(s_model *model, int map_index, int player_index)
49614961
49624962 // This logic attempts to populate used_colors_map array with
49634963 // every color in use by other players who picking same
4964- // character. If there are aren't enough unused map indexes to
4964+ // character. If there aren't enough unused map indexes to
49654965 // go around (i.e. three players select a character that only
49664966 // has two maps), then we return initial map selection.
49674967
@@ -6636,7 +6636,7 @@ void child_spawn_execute_list(s_child_spawn* head, entity* parent)
66366636* 2022-05-29
66376637*
66386638* Accept pointer to node in list of child
6639- * spawns. Apply properties to to spawn
6639+ * spawns. Apply properties to spawn
66406640* a child entity. Returns pointer to
66416641* spawned entity.
66426642*/
@@ -9391,7 +9391,7 @@ void prepare_cache_map(size_t size)
93919391void cache_model(char *name, char *path, int flag)
93929392{
93939393 int len;
9394- printf("Cacheing '%s' from %s\n", name, path);
9394+ printf("Caching '%s' from %s\n", name, path);
93959395 prepare_cache_map(models_cached + 1);
93969396 memset(&model_cache[models_cached], 0, sizeof(model_cache[models_cached]));
93979397
@@ -12497,7 +12497,7 @@ size_t lcmScriptDeleteMain(char **buf)
1249712497 len = i;
1249812498 break;
1249912499 } else continue;
12500- if (i <= 0) break;
12500+ // if (i <= 0) break;
1250112501 }
1250212502
1250312503 len = len-pos;
@@ -12641,7 +12641,7 @@ s_model *init_model(const int cacheindex, const int unload)
1264112641 /*
1264212642 * Faction data. Faction type properties
1264312643 * get defaults set downstream depending
12644- * on the the model's own type.
12644+ * on the model's own type.
1264512645 */
1264612646
1264712647 newchar->faction = (s_faction){
@@ -13694,7 +13694,6 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1369413694 offense_setup_from_arg(filename, command, newchar->offense, &arglist, OFFENSE_PARAMETER_FACTOR);
1369513695 break;
1369613696
13697- break;
1369813697 case CMD_MODEL_HEIGHT:
1369913698 newchar->size.y = GET_INT_ARG(1);
1370013699 break;
@@ -14842,7 +14841,7 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1484214841 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->config = (CHILD_SPAWN_CONFIG_AUTOKILL_HIT | CHILD_SPAWN_CONFIG_BEHAVIOR_BOMB | CHILD_SPAWN_CONFIG_FACTION_DAMAGE_PARENT | CHILD_SPAWN_CONFIG_FACTION_HOSTILE_PARENT | CHILD_SPAWN_CONFIG_FACTION_INDIRECT_PARENT | CHILD_SPAWN_CONFIG_LAUNCH_TOSS | CHILD_SPAWN_CONFIG_MOVE_CONFIG_PARAMETER | CHILD_SPAWN_CONFIG_RELATIONSHIP_OWNER);
1484314842 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->aimove = AIMOVE1_BOMB;
1484414843 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->direction_adjust = DIRECTION_ADJUST_SAME;
14845- child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->move_config_flags = (MOVE_CONFIG_NO_ADJUST_BASE | MOVE_CONFIG_SUBJECT_TO_HOLE | MOVE_CONFIG_SUBJECT_TO_PLATFORM | MOVE_CONFIG_SUBJECT_TO_WALL | MOVE_CONFIG_SUBJECT_TO_MAX_Z | MOVE_CONFIG_SUBJECT_TO_MIN_Z | MOVE_CONFIG_SUBJECT_TO_PLATFORM );
14844+ child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->move_config_flags = (MOVE_CONFIG_NO_ADJUST_BASE | MOVE_CONFIG_SUBJECT_TO_HOLE | MOVE_CONFIG_SUBJECT_TO_PLATFORM | MOVE_CONFIG_SUBJECT_TO_WALL | MOVE_CONFIG_SUBJECT_TO_MAX_Z | MOVE_CONFIG_SUBJECT_TO_MIN_Z);
1484614845
1484714846 break;
1484814847
@@ -14855,7 +14854,7 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1485514854 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->config = (CHILD_SPAWN_CONFIG_AUTOKILL_HIT | CHILD_SPAWN_CONFIG_BEHAVIOR_SHOT | CHILD_SPAWN_CONFIG_FACTION_DAMAGE_PARENT | CHILD_SPAWN_CONFIG_FACTION_HOSTILE_PARENT | CHILD_SPAWN_CONFIG_FACTION_INDIRECT_PARENT | CHILD_SPAWN_CONFIG_GRAVITY_OFF | CHILD_SPAWN_CONFIG_LAUNCH_THROW | CHILD_SPAWN_CONFIG_MOVE_CONFIG_PARAMETER | CHILD_SPAWN_CONFIG_RELATIONSHIP_OWNER);
1485614855 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->aimove = AIMOVE1_ARROW;
1485714856 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->direction_adjust = DIRECTION_ADJUST_SAME;
14858- child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->move_config_flags = (MOVE_CONFIG_NO_ADJUST_BASE | MOVE_CONFIG_SUBJECT_TO_HOLE | MOVE_CONFIG_SUBJECT_TO_PLATFORM | MOVE_CONFIG_SUBJECT_TO_WALL | MOVE_CONFIG_SUBJECT_TO_MAX_Z | MOVE_CONFIG_SUBJECT_TO_MIN_Z | MOVE_CONFIG_SUBJECT_TO_PLATFORM );
14857+ child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->move_config_flags = (MOVE_CONFIG_NO_ADJUST_BASE | MOVE_CONFIG_SUBJECT_TO_HOLE | MOVE_CONFIG_SUBJECT_TO_PLATFORM | MOVE_CONFIG_SUBJECT_TO_WALL | MOVE_CONFIG_SUBJECT_TO_MAX_Z | MOVE_CONFIG_SUBJECT_TO_MIN_Z);
1485914858 child_spawn_upsert_property(&temp_child_spawn_head, temp_child_spawn_index)->takedamage = arrow_takedamage;
1486014859
1486114860 break;
@@ -16029,7 +16028,7 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1602916028
1603016029 /*
1603116030 * Translate text value into a pre-defined forcemap constant.
16032- * Wen applying a pre-defined forcemap, we�ll look at the model
16031+ * When applying a pre-defined forcemap, we�ll look at the model
1603316032 * and try to find its appropriate index. For example, if the
1603416033 * pre-defined BURN is used, forcemap will apply the model�s
1603516034 * designated burn. This allows use of effect maps without the
@@ -16620,10 +16619,10 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1662016619 break;
1662116620
1662216621 case CMD_MODEL_FORCEMAP:
16623-
16622+
1662416623 /*
1662516624 * Translate text value into a pre-defined forcemap constant.
16626- * Wen applying a pre-defined forcemap, we�ll look at the model
16625+ * When applying a pre-defined forcemap, we�ll look at the model
1662716626 * and try to find its appropriate index. For example, if the
1662816627 * pre-defined BURN is used, forcemap will apply the model�s
1662916628 * designated burn. This allows use of effect maps without the
@@ -16902,7 +16901,7 @@ s_model *load_cached_model(char *name, char *owner, char unload)
1690216901
1690316902 /*
1690416903 * Delete nodes from frame object lists
16905- * that don't have valid data (i.e no
16904+ * that don't have valid data (i.e. no
1690616905 * coordinates defined at all or the
1690716906 * coordinates X/Y/H/W are all 0).
1690816907 *
@@ -22138,7 +22137,7 @@ void draw_visual_debug()
2213822137 // boxes, which is what the draw_box_on_entity() funciton
2213922138 // is meant for. For Y axis, We need to invert the value,
2214022139 // and place them in opposiing parameters (Max Y into
22141- // function's min Y parameter, and and min Y into function's
22140+ // function's min Y parameter, and min Y into function's
2214222141 // max Y parameter).
2214322142
2214422143 range_y_min = -entity->animation->range.y.min;
@@ -28518,7 +28517,7 @@ void update_health()
2851828517
2851928518 // 1 Only recover MP > mpstableval.
2852028519 // 2 No recover. Drop MP if MP < mpstableval.
28521- // 3 Both: recover if MP if MP < mpstableval and drop if MP > mpstableval.
28520+ // 3 Both: recover if MP < mpstableval and drop if MP > mpstableval.
2852228521 // 4 Gain until stable, then fall to stable.
2852328522 // 0 Default. Recover MP at all times.
2852428523
@@ -29622,7 +29621,7 @@ void display_ents()
2962229621 {
2962329622 alty = (int)(e->position.y - (other->position.y + other->animation->platform[other->animpos][PLATFORM_HEIGHT]));
2962429623 temp1 = -1 * (e->position.y - (other->position.y + other->animation->platform[other->animpos][PLATFORM_HEIGHT])) * light.x / 256; // xshift
29625- temp2 = (float)( -e->position.y * light.y / 256) ;
29624+ temp2 = -e->position.y * light.y / 256;
2962629625
2962729626 qx = (int)(e->position.x - scrx);
2962829627 qy = (int)(e->position.z - scry - other->position.y - other->animation->platform[other->animpos][PLATFORM_HEIGHT]); // + (other->animation->platform[other->animpos][PLATFORM_DEPTH]/2)
@@ -30757,7 +30756,7 @@ entity *normal_find_target(int anim, int detect_adj)
3075730756 continue;
3075830757 }
3075930758
30760- // If anim is defined, then then target must be
30759+ // If anim is defined, then target must be
3076130760 // in range of animation.
3076230761 if(anim >= 0)
3076330762 {
@@ -44065,7 +44064,7 @@ int obstacle_takedamage(entity *other, s_attack *attack, int fall_flag, s_defens
4406544064void initialize_item_carry(entity *ent, s_spawn_entry *spawn_entry)
4406644065{
4406744066 // It's possible to call this from script, so if
44068- // if there is already memory for an item allocated
44067+ // there is already memory for an item allocated
4406944068 // here, clear it out to make sure we don't end up
4407044069 // with any memory leaks.
4407144070 if(ent->item_properties)
@@ -45607,12 +45606,12 @@ int recordInputs()
4560745606 {
4560845607 if ( playrecstatus->synctime%window >= window-2 ) // last is NULL bytes
4560945608 {
45610- playrecstatus->buffer = (RecKeys*)realloc(playrecstatus->buffer,sizeof(RecKeys)*((int)(trunc( playrecstatus->synctime/window) +1)*window+window));
45609+ playrecstatus->buffer = (RecKeys*)realloc(playrecstatus->buffer,sizeof(RecKeys)*((playrecstatus->synctime/window+1)*window+window));
4561145610 if (playrecstatus->buffer == NULL)
4561245611 {
4561345612 printf("Error to allocate buffer in record inputs mode.\n");
4561445613 return 0;
45615- } else memset(playrecstatus->buffer+(playrecstatus->synctime+1),0,(int)(trunc( playrecstatus->synctime/window) +1)*window+window-(playrecstatus->synctime+1)-1); // -2 becouse -1 is to 0 to size-1
45614+ } else memset(playrecstatus->buffer+(playrecstatus->synctime+1),0,(playrecstatus->synctime/window+1)*window+window-(playrecstatus->synctime+1)-1); // -2 because -1 is to 0 to size-1
4561645615 }
4561745616 }
4561845617
@@ -48885,7 +48884,7 @@ void init_videomodes(int log)
4888548884 }
4888648885 else if(stricmp(command, "colourdepth") == 0)
4888748886 {
48888- printf("\nColordepth is depreciated . All modules are displayed with a 32bit color screen.\n\n");
48887+ printf("\nColordepth is not supported anymore . All modules are displayed with a 32bit color screen.\n\n");
4888948888 }
4889048889 else if(stricmp(command, "forcemode") == 0) {}
4889148890 else if(command && command[0])
0 commit comments