File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 77import gblib;
88import std;
99
10- #include < ctype.h>
11- #include < strings.h>
12-
1310module commands;
1411
1512namespace GB ::commands {
@@ -25,7 +22,7 @@ void repair(const command_t& argv, GameObj& g) {
2522 where = std::make_unique<Place>(g.level (), g.snum (), g.pnum ());
2623 } else {
2724 /* repairing a sector */
28- if (isdigit (argv[1 ][0 ]) && index ( argv[1 ].c_str (), ' ,' ) != nullptr ) {
25+ if (std:: isdigit (argv[1 ][0 ]) && argv[1 ].find ( ' ,' ) != std::string::npos ) {
2926 if (g.level () != ScopeLevel::LEVEL_PLAN) {
3027 g.out << " There are no sectors here.\n " ;
3128 return ;
@@ -60,7 +57,7 @@ void repair(const command_t& argv, GameObj& g) {
6057 return ;
6158 }
6259 auto & smap = *smap_handle;
63- if (isdigit (argv[1 ][0 ]) && index ( argv[1 ].c_str (), ' ,' ) != nullptr ) {
60+ if (std:: isdigit (argv[1 ][0 ]) && argv[1 ].find ( ' ,' ) != std::string::npos ) {
6461 // translate from lowx:hix,lowy:hiy
6562 auto coords = get4args (argv[1 ]);
6663 if (!coords) {
You can’t perform that action at this time.
0 commit comments