View Single Post
Old 09-5-2015, 11:57 PM   #28
AutotelicBrown
Under the scarlet moon
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
AutotelicBrown's Avatar
 
Join Date: Jan 2014
Age: 31
Posts: 921
Default Re: [University - C++ Programming] Help With Assignment (Very Basic Stuff)

Yeah, those should be inside the for loop, and note that you should have in all of them something of the form:
Code:
tileMap[row][col] = WALL;
or:

Code:
tileMap[row][col] = EMPTY;
Actually, you should assign EMPTY at first, and only check for the 'true' block of the ifs to change to WALL if necessary. Logically, you are checking all positions of the matrix and, if the position corresponds to a border you assigning a WALL instead of EMPTY.

Last edited by AutotelicBrown; 09-6-2015 at 12:01 AM..
AutotelicBrown is offline   Reply With Quote