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
77cf27b8
Commit
77cf27b8
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
Clean code and modify comments in mapnode_contentfeatures.h
parent
64996422
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mapnode_contentfeatures.h
+5
-5
5 additions, 5 deletions
src/mapnode_contentfeatures.h
with
5 additions
and
5 deletions
src/mapnode_contentfeatures.h
+
5
−
5
View file @
77cf27b8
...
...
@@ -86,7 +86,8 @@ struct ContentFeatures
#endif
// List of all block textures that have been used (value is dummy)
// Exists on server too for cleaner code in content_mapnode.cpp
// Used for texture atlas making.
// Exists on server too for cleaner code in content_mapnode.cpp.
core
::
map
<
std
::
string
,
bool
>
used_texturenames
;
// Type of MapNode::param1
...
...
@@ -108,8 +109,6 @@ struct ContentFeatures
bool
climbable
;
// Player can build on these
bool
buildable_to
;
// Whether the node has no liquid, source liquid or flowing liquid
enum
LiquidType
liquid_type
;
// If true, param2 is set to direction when placed. Used for torches.
// NOTE: the direction format is quite inefficient and should be changed
bool
wall_mounted
;
...
...
@@ -132,8 +131,9 @@ struct ContentFeatures
// Initial metadata is cloned from this
NodeMetadata
*
initial_metadata
;
// Whether the node is non-liquid, source liquid or flowing liquid
enum
LiquidType
liquid_type
;
// If the content is liquid, this is the flowing version of the liquid.
// If content is liquid, this is the same content.
content_t
liquid_alternative_flowing
;
// If the content is liquid, this is the source version of the liquid.
content_t
liquid_alternative_source
;
...
...
@@ -174,12 +174,12 @@ struct ContentFeatures
diggable
=
true
;
climbable
=
false
;
buildable_to
=
false
;
liquid_type
=
LIQUID_NONE
;
wall_mounted
=
false
;
air_equivalent
=
false
;
often_contains_mineral
=
false
;
dug_item
=
""
;
initial_metadata
=
NULL
;
liquid_type
=
LIQUID_NONE
;
liquid_alternative_flowing
=
CONTENT_IGNORE
;
liquid_alternative_source
=
CONTENT_IGNORE
;
liquid_viscosity
=
0
;
...
...
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