diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 10:01:26 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 10:01:26 +0000 |
commit | 4d5a197bc8c4d782e374364286ce91fd2e118758 (patch) | |
tree | 12901f8b4121ecebc13c2c75cc18aeeaa8627ba4 /crawl-ref/source/traps.cc | |
parent | 05d3781c9f84d761b4f0aa7c3241aea9523710f8 (diff) | |
download | crawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.tar.gz crawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.zip |
Yet another session of comment/whitespace cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 3891154632..05a9301273 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -66,7 +66,7 @@ int get_trapping_net(int x, int y, bool trapped) } // if there are more than one net on this square -// split off one of them for checking/setting values +// split off one of them for checking/setting values. static void maybe_split_nets(item_def &item, int x, int y) { if (item.quantity == 1) @@ -78,12 +78,12 @@ static void maybe_split_nets(item_def &item, int x, int y) item_def it; it.base_type = item.base_type; - it.sub_type = item.sub_type; - it.plus = item.plus; - it.plus2 = item.plus2; - it.flags = item.flags; - it.special = item.special; - it.quantity = --item.quantity; + it.sub_type = item.sub_type; + it.plus = item.plus; + it.plus2 = item.plus2; + it.flags = item.flags; + it.special = item.special; + it.quantity = --item.quantity; item_colour(it); item.quantity = 1; @@ -846,14 +846,14 @@ void clear_trapping_net() bool trap_item(object_class_type base_type, char sub_type, char beam_x, char beam_y) { - item_def item; + item_def item; item.base_type = base_type; - item.sub_type = sub_type; - item.plus = 0; - item.plus2 = 0; - item.flags = 0; - item.special = 0; - item.quantity = 1; + item.sub_type = sub_type; + item.plus = 0; + item.plus2 = 0; + item.flags = 0; + item.special = 0; + item.quantity = 1; if (base_type == OBJ_MISSILES) { |