@@ -112,7 +112,7 @@ void parse_prop_table(const char* filename)
112112
113113 required_string (" +Color:" );
114114 int rgb[3 ];
115- stuff_int_list (rgb, 3 , RAW_INTEGER_TYPE);
115+ stuff_int_list (rgb, 3 , ParseLookupType:: RAW_INTEGER_TYPE);
116116 gr_init_color (&pc.list_color , rgb[0 ], rgb[1 ], rgb[2 ]);
117117
118118 Prop_categories.push_back (pc);
@@ -271,7 +271,7 @@ void parse_prop_table(const char* filename)
271271 }
272272
273273 if (optional_string (" $Detail distance:" )) {
274- pip->num_detail_levels = (int )stuff_int_list (pip->detail_distance , MAX_PROP_DETAIL_LEVELS, RAW_INTEGER_TYPE);
274+ pip->num_detail_levels = (int )stuff_int_list (pip->detail_distance , MAX_PROP_DETAIL_LEVELS, ParseLookupType:: RAW_INTEGER_TYPE);
275275 }
276276
277277 if (optional_string (" $Category:" )) {
@@ -423,7 +423,7 @@ void prop_init()
423423 * Returns object index of prop.
424424 * @return -1 means failed.
425425 */
426- int prop_create (matrix* orient, vec3d* pos, int prop_type, const char * name)
426+ int prop_create (const matrix* orient, const vec3d* pos, int prop_type, const char * name)
427427{
428428 prop_info* pip;
429429 prop* propp;
@@ -454,7 +454,7 @@ int prop_create(matrix* orient, vec3d* pos, int prop_type, const char* name)
454454 char base_name[NAME_LENGTH];
455455 char suffix[NAME_LENGTH];
456456 strcpy_s (base_name, Prop_info[prop_type].name .c_str ());
457- sprintf (suffix, NOX (" %d" ), static_cast < int >(Props. size ()) );
457+ sprintf (suffix, NOX (" %d" ), new_id );
458458
459459 // start building name
460460 strcpy_s (propp->prop_name , base_name);
0 commit comments