Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
8f0d29f9
Commit
8f0d29f9
authored
12 years ago
by
kwolekr
Browse files
Options
Downloads
Patches
Plain Diff
Fix Map::initBlockMake to actually use chunksize setting
parent
d6026a5f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/map.cpp
+3
-7
3 additions, 7 deletions
src/map.cpp
with
3 additions
and
7 deletions
src/map.cpp
+
3
−
7
View file @
8f0d29f9
...
...
@@ -2497,19 +2497,15 @@ bool ServerMap::initBlockMake(BlockMakeData *data, v3s16 blockpos)
bool
enable_mapgen_debug_info
=
m_emerge
->
mapgen_debug_info
;
EMERGE_DBG_OUT
(
"initBlockMake(): "
PP
(
blockpos
)
" - "
PP
(
blockpos
));
//s16 chunksize = 3;
//v3s16 chunk_offset(-1,-1,-1);
//s16 chunksize = 4;
//v3s16 chunk_offset(-1,-1,-1);
s16
chunksize
=
5
;
v3s16
chunk_offset
(
-
2
,
-
2
,
-
2
);
s16
chunksize
=
m_mgparams
->
chunksize
;
s16
coffset
=
-
chunksize
/
2
;
v3s16
chunk_offset
(
coffset
,
coffset
,
coffset
);
v3s16
blockpos_div
=
getContainerPos
(
blockpos
-
chunk_offset
,
chunksize
);
v3s16
blockpos_min
=
blockpos_div
*
chunksize
;
v3s16
blockpos_max
=
blockpos_div
*
chunksize
+
v3s16
(
1
,
1
,
1
)
*
(
chunksize
-
1
);
blockpos_min
+=
chunk_offset
;
blockpos_max
+=
chunk_offset
;
//v3s16 extra_borders(1,1,1);
v3s16
extra_borders
(
1
,
1
,
1
);
// Do nothing if not inside limits (+-1 because of neighbors)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment