Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#4292 closed task (fixed)

[PATCH] Remove deprecated water parameters

Reported by: Imarok Owned by: Imarok
Priority: Should Have Milestone: Alpha 22
Component: Maps Keywords: patch
Cc: Patch:

Description (last modified by elexis)

As stated here: https://github.com/0ad/0ad/blob/3bf098b1bf47e313c0d2bd952812cc365fd9ec93/source/graphics/MapReader.cpp#L752 the parameters LightingModel, Shininess, ReflectionTint and ReflectionTintStrength are deprecated. So they should be removed together with all their occurences.

Attachments (3)

remove_deprecated_water_parameters.patch (86.1 KB ) - added by Bezerra 7 years ago.
remove_deprecated_water_parameters.patch
remove_deprecated_water_parameters2016_12_3.patch (86.5 KB ) - added by FeXoR 7 years ago.
Swapped credit name order
remove_deprecated_water_parameters2016_12_3.2.patch (86.5 KB ) - added by FeXoR 7 years ago.
Swapped credit name order

Download all attachments as: .zip

Change History (10)

by Bezerra, 7 years ago

remove_deprecated_water_parameters.patch

comment:1 by FeXoR, 7 years ago

Keywords: patch added

comment:2 by elexis, 7 years ago

Keywords: review added; simple removed
Milestone: BacklogWork In Progress

Looks promising!

comment:3 by FeXoR, 7 years ago

Summary: Remove deprecated water parameters[PATCH] Remove deprecated water parameters

comment:4 by FeXoR, 7 years ago

In the credits the order should be consistent: First nickname, then realname.

I couldn't find any occurrences in the map folder. I tested several maps and didn't find any error. I looked into some files likely to have related stuff that might nor show up in stringsearch like rmgen environment and randombiome stuff but all seems fine. Changes in MapReader look good to me but I'm not very familiar with the renderer.

Thanks paulobezerr for the patch!

by FeXoR, 7 years ago

Swapped credit name order

by FeXoR, 7 years ago

Swapped credit name order

comment:5 by FeXoR, 7 years ago

Sorry for the double upload, trac stuck...

comment:6 by Imarok, 7 years ago

Owner: set to Imarok
Resolution: fixed
Status: newclosed

In 19040:

Remove deprecated water parameters. Patch by paulobezerr. Partial review by FeXoR. Fixes #4292.

comment:7 by elexis, 7 years ago

Description: modified (diff)
Keywords: review removed
Milestone: Work In ProgressAlpha 22

The deprecated settings were discovered following #4288. Thanks for the ticket, complete patch and reviews!

Note: See TracTickets for help on using tickets.