-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrected orthographe of part of Glob2. #85
base: master
Are you sure you want to change the base?
Corrected orthographe of part of Glob2. #85
Conversation
5068f32
to
62fbac2
Compare
Adding more classes, including libGAG. |
a91ca1d
to
0eb130e
Compare
This looks ready to be merged from my side. I tested a bit and saw no regression, but it would be good if others would test a bit as well! |
I have reviewed libgag/ and everything in src/ in alphabetical order up to but not including Unit.h. Tomorrow after work or maybe on Wednesday I can review some more. What I've found is that in Minimap.cpp the variable pPolIndex should probably be pColIndex and also a possible logic bug: src/SGSL.cpp:405 should be t=GameGUI::HighlightForbiddenZoneOnPanel, but it highlights free workers instead. Also, S_LOOSE should be S_LOSE. Also, there was a Unicode problem in RessourcesTypes.h where a private use character was used for an è (e with grave accent) in the spelling of Luc-Olivier's name. After this change, the accented e character shows up as a Unicode character 0xFFFD in both GitHub web review UI and in Visual Studio Code. The raw hexadecimal in the file is "EF BF BD", which seems to be private use characters which are not supported on my laptop. Please consider amending the commit that introduced that change to undo that change; the other change in that file looks fine. |
I have reviewed some more files yesterday before work and tonight. Currently at src/YOGClientMapDownloadScreen.cpp. Only 726 more changes to review :/. I think I'll have some time after work Thursday or Friday or on the weekend to finish reviewing. |
Thank you very much for doing that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished reviewing.
My review notes:
TODO: finish reviewing PR #85.
2023-04-30 PR #85 review progress: src/GameGUI.h:135 reviewed for about 10 hours
2023-05-01 PR #85 review progress: src/Unit.h reviewed for 11 hours
2023-05-02 PR #85 review progress: src/Version.h:61 reviewed for about half an hour
2023-05-03 PR #85 review progress: src/YOGClientMapDownloadScreen.cpp reviewed for an hour.
(skipped YOGClient.cpp)
2023-05-04 PR #85 review progress: src/YOGServerRouterPlayer.cpp reviewed for an hour and 15 minutes.
(finished reviewing YOGClient.cpp)
Number of remaining changes to review
git diff stephanemagnenat/master..pull85 --stat | awk '{print $3, $1}' | perl -ne 'chomp;print "$_\n" if m/^\d+ (.*)$/ && $1 gt "src/YOGClientLobbyScreen.h"' | awk '{print $1}' | perl -E 'use List::Util "sum";my @numbers = map {chomp;$_} <>;say sum @numbers'
src/YOGClientPlayerListManager.h "This will return the list of players on hosted on the server." extra "on" here?
src/Utilities.cpp strmlen doesn't seem to be documented.
SGSL.cpp:405 There seems to be a bug here. Forbidden zone should be highlighted but instead t
is set to HighlightWorkersWorkingFreeStat instead of HighlightForbiddenZoneOnPanel
SGSL.cpp:634 S_LOOSE should be S_LOSE.
OverlayAreas.cpp:139 Pythagorean theorem?
NetMessage.h:1564,1565 why a double private: modifier here?
NetMessage.cpp cool trick in NetSendGamePlayerInfo::downloadToGameHeader
NetMessage.cpp:3126 (NetSendReteamingInformation::operator==) shouldn't this method use dynamic_cast instead of typeid?
MapGenerator.h:55 voronoi?
Building::isHardSpaceForBuilding what is tltn variable? "type level to next"?
Game::executeOrder why the m in oMcf
is capitalized?
PR#85 src/Building.cpp:2530 loop could be replaced with std::accumulate. Also, possible division by zero if type->maxResources array is full of zeroes.
SGSL is the old scripting language in the game; USL is the new one.
algae is limited by near underground? Explorers can attack?
@@ -90,7 +90,7 @@ class YOGServerPlayer | |||
NeedToSendServerInformation, | |||
///Means its waiting for a login attempt by the client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be "it's waiting".
else if(type==MNetRequestDownloadableMapList) | ||
{ | ||
shared_ptr<NetRequestDownloadableMapList> info = static_pointer_cast<NetRequestDownloadableMapList>(message); | ||
server.getMapDatabank().sendMapListToPlayer(server.getPlayer(playerID)); | ||
} | ||
//This recieves | ||
//This receives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"This receives..." what? Oh, a message asking to upload a map.
@@ -291,7 +291,7 @@ void YOGServerPlayer::update() | |||
sendMessage(info); | |||
} | |||
} | |||
//This recieves a cancel to a file upload | |||
//This receives a cancel to a file upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something along the lines of "This receives a message saying to cancel a file upload" would be better grammatically.
@@ -64,7 +64,7 @@ class YOGServerRouterAbortCommand : public YOGServerRouterAdministratorCommand | |||
}; | |||
|
|||
|
|||
///This command causes a router to disconnect from the server and turn off once all clients disconnecty | |||
///This command causes a router to disconnect from the server and turn off once all clients disconnected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "once all clients have disconnected"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished reviewing.
Review Notes
TODO: finish reviewing PR #85.
2023-04-30 PR #85 review progress: src/GameGUI.h:135 reviewed for about 10 hours
2023-05-01 PR #85 review progress: src/Unit.h reviewed for 11 hours
2023-05-02 PR #85 review progress: src/Version.h:61 reviewed for about half an hour
2023-05-03 PR #85 review progress: src/YOGClientMapDownloadScreen.cpp reviewed for an hour.
(skipped YOGClient.cpp)
2023-05-04 PR #85 review progress: src/YOGServerRouterPlayer.cpp reviewed for an hour and 15 minutes.
(finished reviewing YOGClient.cpp)
Number of remaining changes to review
git diff stephanemagnenat/master..pull85 --stat | awk '{print $3, $1}' | perl -ne 'chomp;print "$_\n" if m/^\d+ (.*)$/ && $1 gt "src/YOGClientLobbyScreen.h"' | awk '{print $1}' | perl -E 'use List::Util "sum";my @numbers = map {chomp;$_} <>;say sum @numbers'
src/YOGClientPlayerListManager.h "This will return the list of players on hosted on the server." extra "on" here?
src/Utilities.cpp strmlen doesn't seem to be documented.
SGSL.cpp:405 There seems to be a bug here. Forbidden zone should be highlighted but instead t
is set to HighlightWorkersWorkingFreeStat instead of HighlightForbiddenZoneOnPanel
SGSL.cpp:634 S_LOOSE should be S_LOSE.
OverlayAreas.cpp:139 Pythagorean theorem?
NetMessage.h:1564,1565 why a double private: modifier here?
NetMessage.cpp cool trick in NetSendGamePlayerInfo::downloadToGameHeader
NetMessage.cpp:3126 (NetSendReteamingInformation::operator==) shouldn't this method use dynamic_cast instead of typeid?
MapGenerator.h:55 voronoi?
Building::isHardSpaceForBuilding what is tltn variable? "type level to next"?
Game::executeOrder why the m in oMcf
is capitalized?
PR#85 src/Building.cpp:2530 loop could be replaced with std::accumulate. Also, possible division by zero if type->maxResources array is full of zeroes.
SGSL is the old scripting language in the game; USL is the new one.
algae is limited by near underground? Explorers can attack?
1888212
to
080be60
Compare
bbf2189
to
c7bb44d
Compare
4ffc52d
to
2752f89
Compare
2752f89
to
d9ba9b4
Compare
This corrects the orthography of part of Glob2 in order to make it more comfortable to work with, and makes using IDE with integrated spell-checking less visually distracting. It also removes some French-ism ;-)
Note that, to limit merge conflict, this does not change: