Make a lot of code stop relying on hard-coded sizes

This commit is contained in:
2015-02-01 17:19:52 -05:00
parent 15a802f63d
commit c37ede5a04
17 changed files with 153 additions and 178 deletions

View File

@@ -163,8 +163,8 @@ location get_spec_loc(short which) {
location where;
short i;
for(i = 0; i < 50; i++)
if(univ.town->spec_id[i] == which)
for(i = 0; i < univ.town->special_locs.size(); i++)
if(univ.town->special_locs[i].spec == which)
return univ.town->special_locs[i];
return where;
}