Description:
Remove some debug code.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -194,7 +194,9 | |||||
|
194 |
|
194 | ||
|
195 | this.remainingDialog = new Queue<Node<DialogOption>>(); |
|
195 | this.remainingDialog = new Queue<Node<DialogOption>>(); |
|
196 |
|
196 | ||
|
|
197 | #if DEBUG | ||
|
197 | this.remainingDialog.Enqueue(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); |
|
198 | this.remainingDialog.Enqueue(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); |
|
|
199 | #endif | ||
|
198 |
|
200 | ||
|
199 | //font = fontBakeResult.CreateSpriteFont(GraphicsDevice); |
|
201 | //font = fontBakeResult.CreateSpriteFont(GraphicsDevice); |
|
200 | monoFont = bakedMono.CreateSpriteFont(GraphicsDevice); |
|
202 | monoFont = bakedMono.CreateSpriteFont(GraphicsDevice); |
@@ -232,7 +232,6 | |||||
|
232 | new_planted += 1; |
|
232 | new_planted += 1; |
|
233 | } |
|
233 | } |
|
234 | } |
|
234 | } |
|
235 | System.Console.WriteLine(String.Format("New {0}", new_planted)); |
|
||
|
236 |
|
235 | ||
|
237 | int crowded_out = 0; |
|
236 | int crowded_out = 0; |
|
238 | foreach (Cell cell in this.map.iterate_cells_with_neighbors(7)) |
|
237 | foreach (Cell cell in this.map.iterate_cells_with_neighbors(7)) |
@@ -243,7 +242,6 | |||||
|
243 | crowded_out += 1; |
|
242 | crowded_out += 1; |
|
244 | } |
|
243 | } |
|
245 | } |
|
244 | } |
|
246 | System.Console.Write(String.Format("Crowded {0}", crowded_out)); |
|
||
|
247 |
|
245 | ||
|
248 | int trees_to_plant = this.tree_planting; |
|
246 | int trees_to_plant = this.tree_planting; |
|
249 |
|
247 | ||
@@ -260,7 +258,6 | |||||
|
260 |
|
258 | ||
|
261 |
|
259 | ||
|
262 | int trees_to_clear = this.tree_clearing; |
|
260 | int trees_to_clear = this.tree_clearing; |
|
263 | System.Console.Write(String.Format("Found {0}; ", this.map.iterate_cells_with_neighbors(7).Where(c => c.hasTree).Count())); |
|
||
|
264 | foreach (Cell cell in this.map.iterate_cells_with_neighbors(7).Where(c => c.hasTree)) |
|
261 | foreach (Cell cell in this.map.iterate_cells_with_neighbors(7).Where(c => c.hasTree)) |
|
265 | { |
|
262 | { |
|
266 | if (trees_to_clear > 0) { |
|
263 | if (trees_to_clear > 0) { |
@@ -301,8 +298,6 | |||||
|
301 |
|
298 | ||
|
302 | public void update(TimeSpan deltaTime) |
|
299 | public void update(TimeSpan deltaTime) |
|
303 | { |
|
300 | { |
|
304 | //this.Tick++; |
|
||
|
305 |
|
|||
|
306 | if (!this.paused) |
|
301 | if (!this.paused) |
|
307 | { |
|
302 | { |
|
308 | this.Elapsed += deltaTime.Milliseconds; |
|
303 | this.Elapsed += deltaTime.Milliseconds; |
You need to be logged in to leave comments.
Login now