Numerous changes to terrain and trim. The changes to the scneario editor work as expected.
- New way of drawing walkway (doesn't work yet) - New way of drawing roads (doesn't yet work correctly) - New way of drawing trim (not tested yet) - New way of handling marked specials (works in editor but not in game) - New way of handling two-space rubble in the editor (works as expected) - Merged several terrain special properties - Deprecated several terrain graphics - Completed (probably) the import & convert code for old-format terrain - Probably other things that I have forgotten that have something to do with terrain - A few other little things, bugfixes, etc git-svn-id: http://openexile.googlecode.com/svn/trunk@56 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -9,12 +9,18 @@
|
||||
#include "classes.h"
|
||||
#include "oldstructs.h"
|
||||
|
||||
extern cScenario scenario;
|
||||
|
||||
__attribute__((deprecated))
|
||||
cOutdoors& cOutdoors::operator = (legacy::outdoor_record_type& old){
|
||||
int i,j;
|
||||
for(i = 0; i < 48; i++)
|
||||
for(j = 0; j < 48; j++)
|
||||
for(j = 0; j < 48; j++){
|
||||
terrain[i][j] = old.terrain[i][j];
|
||||
if(scenario.ter_types[terrain[i][j]].i == 3000) // marker to indicate it used to be a special spot
|
||||
special_spot[i][j] = true;
|
||||
else special_spot[i][j] = false;
|
||||
}
|
||||
for(i = 0; i < 18; i++){
|
||||
special_locs[i].x = old.special_locs[i].x;
|
||||
special_locs[i].y = old.special_locs[i].y;
|
||||
|
Reference in New Issue
Block a user