Skip to content

Commit

Permalink
Fix compilation for non-client builds, and fix signed comparison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed May 8, 2015
1 parent 2dba29e commit f091bbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/nodedef.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <iostream>
#include <map>
#include <list>
#include "util/numeric.h"
#include "mapnode.h"
#ifndef SERVER
#include "client/tile.h"
Expand Down
4 changes: 2 additions & 2 deletions src/unittest/test_schematic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void TestSchematic::testMtsSerializeDeserialize(INodeDefManager *ndef)
schem.slice_probs = new u8[size.Y];
for (size_t i = 0; i != volume; i++)
schem.schemdata[i] = MapNode(test_schem_data[i], MTSCHEM_PROB_ALWAYS, 0);
for (size_t y = 0; y != size.Y; y++)
for (s16 y = 0; y != size.Y; y++)
schem.slice_probs[y] = MTSCHEM_PROB_ALWAYS;

UASSERT(schem.serializeToMts(&ss, names));
Expand Down Expand Up @@ -116,7 +116,7 @@ void TestSchematic::testLuaTableSerialize(INodeDefManager *ndef)
schem.slice_probs = new u8[size.Y];
for (size_t i = 0; i != volume; i++)
schem.schemdata[i] = MapNode(test_schem_data2[i], MTSCHEM_PROB_ALWAYS, 0);
for (size_t y = 0; y != size.Y; y++)
for (s16 y = 0; y != size.Y; y++)
schem.slice_probs[y] = MTSCHEM_PROB_ALWAYS;

std::vector<std::string> names;
Expand Down

0 comments on commit f091bbd

Please sign in to comment.