comparison dep/animia/src/animia.cc @ 153:bd439dd6ffc5

*: make win stuff actually work, rename bsd.cc to xnu.cc It's been OS X only for ages, and these functions are different between most BSDs anyway
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 13:28:18 -0500
parents 8700806c2cc2
children d2bbb5773616
comparison
equal deleted inserted replaced
152:8700806c2cc2 153:bd439dd6ffc5
36 36
37 return false; 37 return false;
38 } 38 }
39 39
40 static bool PlayerHasStrategy(const Player& player, const Strategy& strategy) { 40 static bool PlayerHasStrategy(const Player& player, const Strategy& strategy) {
41 for (const auto& pstrategy : player.strategies) { 41 for (const auto& pstrategy : player.strategies)
42 if (pstrategy == strategy) 42 if (pstrategy == strategy)
43 return true; 43 return true;
44 } 44
45 return false; 45 return false;
46 } 46 }
47 47
48 } // namespace internal 48 } // namespace internal
49 49