forked from oerkki/voxelands
what do you mean, NULL->getter() doesn't work?
This commit is contained in:
parent
6ce9b70f06
commit
e00208bcdd
|
@ -2295,8 +2295,9 @@ void the_game(
|
|||
v3f pp = client.getLocalPlayer()->getPosition();
|
||||
spos = floatToInt(pp,BS);
|
||||
}
|
||||
MapBlock *block = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos));
|
||||
snode = client.getEnv().getMap().getNodeNoEx(spos,NULL);
|
||||
biome = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos))->getBiome();
|
||||
biome = (block == NULL) ? BIOME_UNKNOWN : block->getBiome();
|
||||
}
|
||||
|
||||
LocalPlayer *p = client.getLocalPlayer();
|
||||
|
|
Loading…
Reference in New Issue