Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. majorkup

    Dynamic Array of records, Blockwrite, problem

    Thanks a lot for such a great research. But still, the only thing I'm interested is speed, even when it costs me additional 4 bytes for the pointer. But now when the reading goes in a loop, I'm not sure it's so fast anymore. I need to test it.
  2. majorkup

    Dynamic Array of records, Blockwrite, problem

    What I discovered is: The problem occurs only when the map isn't saved to a file before loading. The constructor reads as follow: (fills the header, and sets the length of the array, then:) for x := 0 to Header.width - 1 do for y := 0 to Header.height - 1 do begin terrain[x,y].Index...
  3. majorkup

    Dynamic Array of records, Blockwrite, problem

    The problem goes even further when I add another varible to the record, like: TTerrainCell = record Index : integer; Index2 : integer; end;
  4. majorkup

    Dynamic Array of records, Blockwrite, problem

    Sorry, I don't know how to edit this post. Of course its array of tterraincell.
  5. majorkup

    Dynamic Array of records, Blockwrite, problem

    Hi there. I have this dynamic 2d array of records: TTerrainCell = record Index : integer; end; Terrain : array of array of TTCell; And a loading procedure: var f : file of byte; begin assignfile(f,filename); reset(f); blockread(f,Header,sizeof(TMapHeader))...

Part and Inventory Search

Back
Top