Thread: Reset Tiledefs
View Single Post
  #1  
Old 07-29-2010, 05:55 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Reset Tiledefs

Due to Zodiac's old tiledef system being completely inefficient, it made a complete mess of the file. So I wrote this function to clean it.

PHP Code:
//#CLIENTSIDE

function resetTileDefs() {
  
temp.tiledefs.loadlines("levels/tiledefs/tiledefs" getservername() @ ".txt");
  for (
temp.tiledeftemp.tiledefs) {
    
temp.lvl temp.tiledef[1];
    
removetiledefs(temp.lvl);
  }

__________________
Quote:
Reply With Quote